gtouchable
Loading...
Searching...
No Matches
gelectronic.h
Go to the documentation of this file.
1#pragma once
2
3#include <ostream>
4#include <vector>
5
33{
34public:
46 GElectronic(int c, int s, int ch, int m);
47
56
66 void setHAddress(int c, int s, int ch);
67
73 std::vector<int> getHAddress();
74
75private:
76 int crate;
77 int slot;
78 int channel;
79 int mode;
80
89 bool operator==(const GElectronic& ge) const;
90
96 friend std::ostream& operator<<(std::ostream& stream, const GElectronic& ge);
97};
Represents an electronic module address (crate/slot/channel) with configurable comparison granularity...
Definition gelectronic.h:33
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).
friend std::ostream & operator<<(std::ostream &stream, const GElectronic &ge)
Stream output helper for diagnostics and logging.