~sophie-middleton08/maus/devel

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/V830Processor.cc

  • Committer: Chris Rogers
  • Date: 2012-05-10 20:25:42 UTC
  • mfrom: (663.6.10 merge)
  • Revision ID: chris.rogers@stfc.ac.uk-20120510202542-cr294lltgh14lde0
Tags: MAUS-v0.2.2
ReleaseĀ 0.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 
2
 *
 
3
 * MAUS is free software: you can redistribute it and/or modify
 
4
 * it under the terms of the GNU General Public License as published by
 
5
 * the Free Software Foundation, either version 3 of the License, or
 
6
 * (at your option) any later version.
 
7
 *
 
8
 * MAUS is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#include "src/common_cpp/JsonCppProcessors/V830Processor.hh"
 
18
 
 
19
namespace MAUS {
 
20
 
 
21
V830Processor::V830Processor()
 
22
    : _ldc_id_proc(), _equip_type_proc(), _channels_proc(),
 
23
      _phys_event_number_proc(), _time_stamp_proc(), _geo_proc() {
 
24
    RegisterValueBranch
 
25
          ("ldc_id", &_ldc_id_proc, &V830::GetLdcId,
 
26
          &V830::SetLdcId, true);
 
27
    RegisterValueBranch
 
28
          ("equip_type", &_equip_type_proc, &V830::GetEquipType,
 
29
          &V830::SetEquipType, true);
 
30
    RegisterValueBranch
 
31
          ("channels", &_channels_proc, &V830::GetChannels,
 
32
          &V830::SetChannels, true);
 
33
    RegisterValueBranch
 
34
          ("phys_event_number", &_phys_event_number_proc, &V830::GetPhysEventNumber,
 
35
          &V830::SetPhysEventNumber, true);
 
36
    RegisterValueBranch
 
37
          ("time_stamp", &_time_stamp_proc, &V830::GetTimeStamp,
 
38
          &V830::SetTimeStamp, true);
 
39
    RegisterValueBranch
 
40
          ("geo", &_geo_proc, &V830::GetGeo,
 
41
          &V830::SetGeo, true);
 
42
}
 
43
}  // namespace MAUS
 
44
 
 
45