gtouchable
Loading...
Searching...
No Matches
GElectronic Struct Reference

Represents an electronic module address. More...

#include <gelectronic.h>

Collaboration diagram for GElectronic:
Collaboration graph

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GElectronic() [1/2]

GElectronic::GElectronic ( int c,
int s,
int ch,
int m )
Parameters
cCrate number.
sSlot number.
chChannel number.
mMode for comparison (0: crate, 1: crate and slot, 2: crate, slot, and channel).

Definition at line 9 of file gelectronic.cc.

◆ GElectronic() [2/2]

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.

Member Function Documentation

◆ getHAddress()

std::vector< int > GElectronic::getHAddress ( )
Returns
A vector containing {crate, slot, channel}.

Definition at line 24 of file gelectronic.cc.

◆ setHAddress()

void GElectronic::setHAddress ( int c,
int s,
int ch )
Parameters
cCrate number.
sSlot number.
chChannel number.

Definition at line 17 of file gelectronic.cc.


The documentation for this struct was generated from the following files: