1 #ifndef SZA_UTIL_DDSCHANNEL_H
2 #define SZA_UTIL_DDSCHANNEL_H
45 DDSALL = DDS0|DDS1|DDS2|DDS3|DDS4|DDS5|DDS6|DDS7|DDS8|DDS9|DDS10|DDS11|DDS12|DDS13|DDS14|DDS15|DDS16|DDS17|DDS18|DDS19|DDS20|DDS21|DDS22
59 void setDDSId(Id
id) {
65 static unsigned DDSToLRInt(Id
id);
70 static Id LRIntToDDSId(
unsigned intId);
74 static bool isValidSingleChannel(Id
id);
75 bool isValidSingleChannel();
79 static bool isValidChannelSet(DDSChannel::Id channels);
84 static Id intToId(
unsigned int iant);
89 static unsigned idToInt(DDSChannel::Id
id);
94 static unsigned int getIntId(Id
id);
95 unsigned int getIntId();
99 static std::string printChannels(Id
id);
100 std::string printChannels();
109 const DDSChannel operator+(
const DDSChannel& channel);
114 bool operator<(
const DDSChannel channel);
119 bool operator<=(
const DDSChannel channel);
124 bool operator>(
const DDSChannel channel);
129 bool operator>=(
const DDSChannel channel);
134 bool operator==(
const DDSChannel channel);
139 const DDSChannel& operator++();
144 const DDSChannel operator++(
int);
150 bool isSet(
unsigned id);
151 bool isSet(DDSChannel::Id
id);
152 bool isSet(DDSChannel& dds);
166 friend std::ostream& operator<<(std::ostream& os,
const DDSChannel& rx);
171 friend DDSChannel::Id operator+(
const DDSChannel::Id id1,
172 const DDSChannel::Id id2);
177 friend DDSChannel::Id operator-(
const DDSChannel::Id id1,
178 const DDSChannel::Id id2);
194 std::ostream& operator<<(std::ostream& os,
const DDSChannel& rx);
199 DDSChannel::Id operator+(
const DDSChannel::Id id1,
200 const DDSChannel::Id id2);
205 DDSChannel::Id operator-(
const DDSChannel::Id id1,
206 const DDSChannel::Id id2);
214 #endif // End #ifndef SZA_UTIL_DDSCHANNEL_H