77 out <<
"<Anonymous DeviceState>" << std::flush;
111 return value != mValue;
116 return value == mValue;
119 return value < mValue;
122 return value <= mValue;
125 return value > mValue;
128 return value >= mValue;
145 out <<
"<ValueState: " << mValue <<
"|"<<
mInterface <<
">" << std::flush;
172 return value > mHigh || value < mLow;
176 return value <= mHigh && value > mLow;
179 return value <= mLow || value >= mHigh;
182 return value < mHigh && value > mLow;
185 return value == mLow || value == mHigh;
191 return value <= mHigh;
194 return value > mHigh;
197 return value >= mLow;
214 out <<
"<IntervalState: "<< mLow <<
" to " << mHigh <<
">" << std::flush;
246 return valueX > mHighX || valueX < mLowX || valueY > mHighY || valueY < mLowY;
250 return valueX <= mHighX && valueX >= mLowX && valueY <= mHighY && valueY >= mLowY;
254 return valueX >= mHighX || valueX <= mLowX || valueY >= mHighY || valueY <= mLowY;
257 return valueX < mHighX && valueX > mLowX && valueY < mHighY && valueY > mLowY;
260 return ((valueX == mLowX || valueX == mHighX) && valueY >= mLowY && valueY <= mHighY) ||
261 ((valueY == mLowY || valueY == mHighY) && valueX >= mLowX && valueX <= mHighX);
264 return valueX < mLowX && valueY < mLowY;
267 return valueX <= mHighX && valueY <= mHighY;
270 return valueX > mHighX && valueY > mHighY;
273 return valueX >= mLowX && valueY >= mLowY;
287 out <<
"<RegionState: x:"<< mLowX <<
" to " << mHighX <<
" y: " << mLowY <<
" to " << mHighY <<
">" << std::flush;
ostream & operator<<(ostream &out, const DeviceState &device)
@ DT_GREATER_THAN_OR_EQUAL
virtual int GetState(int iface) const
int mInterface
This is different from the value or values that an interface can take on.
DeviceState(DeviceTest test, int interfaced, PDevice *device, PEBL_DEVICE_TYPE pdt)
virtual std::ostream & SendToStream(std::ostream &out) const
virtual int GetInterface() const
virtual int TestDevice() const
virtual int TestDevice() const
std::ostream & SendToStream(std::ostream &out) const
virtual int GetState(int iface) const
virtual int TestDevice() const
virtual std::ostream & SendToStream(std::ostream &out) const
RegionState(int lowx, int highx, int lowy, int highy, DeviceTest test, int interfaced, PDevice *device, PEBL_DEVICE_TYPE pdt)
ValueState(int value, DeviceTest test, int interfaced, PDevice *device, PEBL_DEVICE_TYPE pdt)
virtual std::ostream & SendToStream(std::ostream &out) const
virtual int TestDevice() const