Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DataEvent.h File Reference

Defines DataEvent, for passing around data (or pointers to data). More...

#include "Events/EventBase.h"
#include <sstream>
#include <libxml/tree.h>
Include dependency graph for DataEvent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DataEvent< T, TID >
 Event type for passing around data (or pointers to data). In a state machine, use a SignalTrans to test for a specific data value and make the sid the address of the node posting the event. More...

Defines

#define DATAEVENT_IMPLEMENTATION(_abstract_type, _implementation)
#define DATAEVENT_IMPLEMENTATION_H(_abstract_type, _implementation)
#define DATAEVENT_IMPLEMENTATION_CC(_abstract_type, _implementation)

Detailed Description

Defines DataEvent, for passing around data (or pointers to data).

Author:
ejt (Creator)

Definition in file DataEvent.h.


Define Documentation

#define DATAEVENT_IMPLEMENTATION ( _abstract_type,
_implementation   ) 
Value:
template<> void DataEvent<_abstract_type, -1>::getDataFromString(std::stringstream &ss) \
   { _implementation x; ss >> x; data = (_abstract_type)x; } \
  template<> void DataEvent<_abstract_type, -1>::sendDataToString(std::stringstream &ss) const { ss << (_implementation)data; }

Definition at line 64 of file DataEvent.h.

#define DATAEVENT_IMPLEMENTATION_CC ( _abstract_type,
_implementation   ) 
Value:
template<> void DataEvent<_abstract_type, -1>::getDataFromString(std::stringstream &ss) \
   { _implementation x; ss >> x; data = (_abstract_type)x; } \
  template<> void DataEvent<_abstract_type, -1>::sendDataToString(std::stringstream &ss) const { ss << (_implementation)data; }

Definition at line 73 of file DataEvent.h.

#define DATAEVENT_IMPLEMENTATION_H ( _abstract_type,
_implementation   ) 
Value:
template<> void DataEvent<_abstract_type, -1>::getDataFromString(std::stringstream &ss); \
  template<> void DataEvent<_abstract_type, -1>::sendDataToString(std::stringstream &ss) const;

Definition at line 69 of file DataEvent.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:55 2016 by Doxygen 1.6.3