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
19
20public:
21
30 GElectronic(int c, int s, int ch, int m);
31
39
47 void setHAddress(int c, int s, int ch);
48
54 std::vector<int> getHAddress();
55
56private:
57 int crate;
58 int slot;
59 int channel;
60 int mode;
61
62
74 bool operator==(const GElectronic& ge) const;
75
77 friend std::ostream &operator<<(std::ostream &stream, const GElectronic &ge);
78
79
80};
81
Represents an electronic module address.
Definition gelectronic.h:18
std::vector< int > getHAddress()
Gets the hardware address.
GElectronic()
Default constructor.
void setHAddress(int c, int s, int ch)
Sets the hardware address.
friend std::ostream & operator<<(std::ostream &stream, const GElectronic &ge)
Overloaded output operator for GElectronic.