gtouchable
|
Represents an electronic module address. More...
#include <gelectronic.h>
Public Member Functions | |
GElectronic (int c, int s, int ch, int m) | |
Constructs a GElectronic object with given address and mode. | |
GElectronic () | |
Default constructor. | |
void | setHAddress (int c, int s, int ch) |
Sets the hardware address. | |
std::vector< int > | getHAddress () |
Gets the hardware address. | |
This class encapsulates the crate, slot, and channel details used to identify a specific electronic module. Comparison is based on the mode, which defines the granularity of the comparison: mode == 0: crate only mode == 1: crate, slot mode == 2: crate, slot, channel For example, if mode = 1: 3,3,1 is the same as 3,3,4 In mode 2 they would be different
Definition at line 18 of file gelectronic.h.
GElectronic::GElectronic | ( | int | c, |
int | s, | ||
int | ch, | ||
int | m ) |
c | Crate number. |
s | Slot number. |
ch | Channel number. |
m | Mode for comparison (0: crate, 1: crate and slot, 2: crate, slot, and channel). |
Definition at line 9 of file gelectronic.cc.
GElectronic::GElectronic | ( | ) |
Initializes GElectronic with uninitialized values. empty constructor needed because of the map declaration in the translation table
Definition at line 12 of file gelectronic.cc.
std::vector< int > GElectronic::getHAddress | ( | ) |
Definition at line 24 of file gelectronic.cc.
void GElectronic::setHAddress | ( | int | c, |
int | s, | ||
int | ch ) |
c | Crate number. |
s | Slot number. |
ch | Channel number. |
Definition at line 17 of file gelectronic.cc.