Wiselib
Public Types | Public Member Functions
concepts::StateCallback_concept Class Reference

Inherits concepts::BasicReturnValues_concept.

Inherited by concepts::NodeDistanceEstimation_concept, concepts::Odometer_concept, and concepts::Position_concept.

List of all members.

Public Types

enum  State { READY, NO_VALUE, INACTIVE, DATA_AVAILABLE }
enum  {
  SUCCESS, ERR_UNSPEC, ERR_NOMEM, ERR_BUSY,
  ERR_NOTIMPL, ERR_NETDOWN, ERR_HOSTUNREACH
}
enum  StateValues { READY, NO_VALUE, INACTIVE }

Public Member Functions

template<typename T , void(T::*)(int) TMethod>
int register_state_callback (T *obj)
 Register state changed callback function - method signature must be void RCV_METHOD_NAME(int state).
int unregister_state_callback (int)
 Unregister state-changed callback.

Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
SUCCESS 

Default return value of success.

ERR_UNSPEC 

Unspecified error value - if no other fits.

ERR_NOMEM 

Out of memory.

ERR_BUSY 

Device or resource busy - try again later.

ERR_NOTIMPL 

Function not implemented.

ERR_NETDOWN 

Network is down.

ERR_HOSTUNREACH 

No route to host.

Enumerator:
READY 

Ready for returning a value.

NO_VALUE 

There is no value available.

INACTIVE 

Not yet enabled - implementation is inactive and cannot return meaningful values.

DATA_AVAILABLE 

There is new data availbale.

Reimplemented in concepts::NodeDistanceEstimation_concept, and concepts::Position_concept.

Enumerator:
READY 

Ready for asking for data.

NO_VALUE 

Currently no data available.

INACTIVE 

Currently inactive - so no values available.


Member Function Documentation

template<typename T , void(T::*)(int) TMethod>
int concepts::StateCallback_concept::register_state_callback ( T *  obj)

Register state changed callback function - method signature must be void RCV_METHOD_NAME(int state).

Returns callback-identifier or -1 in order to signal an error.

Reimplemented in concepts::NodeDistanceEstimation_concept, and concepts::Position_concept.

int concepts::StateCallback_concept::unregister_state_callback ( int  )

Unregister state-changed callback.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines