28 return {crate, slot, channel};
32bool GElectronic::operator==(
const GElectronic& ge)
const {
33 if (this->mode == 0) {
34 return this->crate == ge.crate;
36 else if (this->mode == 1) {
37 return this->crate == ge.crate && this->slot == ge.slot;
39 else if (this->mode == 2) {
40 return this->crate == ge.crate && this->slot == ge.slot && this->channel == ge.channel;
47 stream <<
" Crate: " << ge.crate;
48 stream <<
" Slot: " << ge.slot;
49 stream <<
" Channel: " << ge.channel;
std::ostream & operator<<(std::ostream &stream, const GElectronic &ge)
Defines GElectronic, a compact hardware address used by digitization and translation tables.
#define UNINITIALIZEDNUMBERQUANTITY
Represents an electronic module address (crate/slot/channel) with configurable comparison granularity...
std::vector< int > getHAddress()
Returns the hardware address as a vector of three integers.
GElectronic()
Default constructor.
void setHAddress(int c, int s, int ch)
Sets the hardware address fields (crate/slot/channel).