TRUE if the bus is in a valid state.
Return FALSE if the bus is in an invalid state.
virtual const DNA_Error & GetError(void) const
Return the error object.
virtual const DNA_BusImp *GetImp(void) const
Return the implementation.
long Compare(const DNA_Bus & bus) const
Return 0 if the bus and bus use the same
implementation object.
virtual void SetImp(DNA_BusImp *i)
Set the implementation of the bus to be i. Note that this may be a
pointer to an object of any class derived from DNA_BusImp,
including those derived from DNA_BindingImp and
DNA_ConnectionImp.
Note that i must be heap allocated and will be automatically deleted
upon destruction.
virtual void Reset(void)
Reset the bus to an initialized state.
virtual GPL_Boolean Read(void *buffer, const unsigned long size, unsigned long & length)
Read size bytes from the message bus into buffer. Upon return,
length contains the actual number of bytes read. Return TRUE
if the read succeeds and FALSE if the read fails.
virtual long Read(void *buffer, const unsigned long size, const long timeout, unsigned long & length)
Read size bytes from the message bus into buffer, waiting at
least timeout milliseconds for the data to be available. Upon
return, length contains the actual number of bytes read. Return
TRUE if the read succeeds and FALSE if the read fails. If
no data arrives before the timeout, FALSE is returned and the
value of error.type is DNA_ERROR_NO_DATA_AVAILABLE .
virtual GPL_Boolean Write(void *buffer, const unsigned long size, unsigned long & length)
Write size bytes from buffer onto the message bus. Upon
return, length contains the actual number of bytes written.
Return TRUE if the read succeeds and FALSE if the read
fails.
error is passed as a
non-const reference all over the place. While causing argument bloat,
it should be as fast as raw pointers and will always be correct.
DNA_BUS_VALID |
The bus is in a valid state. |