5#include "gutsConventions.h"
13 channel(UNINITIALIZEDNUMBERQUANTITY), mode(UNINITIALIZEDNUMBERQUANTITY) {}
25 return {crate, slot, channel};
29bool GElectronic::operator==(
const GElectronic &ge)
const {
30 if (this->mode == 0) {
31 return this->crate == ge.crate;
32 }
else if (this->mode == 1) {
33 return this->crate == ge.crate && this->slot == ge.slot;
34 }
else if (this->mode == 2) {
35 return this->crate == ge.crate && this->slot == ge.slot && this->channel == ge.channel;
42 stream <<
" Crate: " << ge.crate;
43 stream <<
" Slot: " << ge.slot;
44 stream <<
" Channel: " << ge.channel;
std::ostream & operator<<(std::ostream &stream, const GElectronic &ge)
Represents an electronic module address.
std::vector< int > getHAddress()
Gets the hardware address.
GElectronic()
Default constructor.
void setHAddress(int c, int s, int ch)
Sets the hardware address.