FACT++  1.0
Event::Event ( const std::string &  name,
const std::string &  fmt = "" 
)

Constructs an event as a combination of an EventImp and a DimCommand.

Store the name in fName and the format in fFormat. Initializes fTime to an invalid time.

Parameters
nameName given to the event
fmtIf the event has data attached (like arguments of commands) the format can be given here. How the format string is defined is defined within the dim libarary. It is used in console and shell access to properly format the data sent with the event

From the dim manual: The format parameter specifies the contents of the structure in the form T:N[;T:N]*[;T] where T is the item type: (I)nteger, (C)haracter, (L)ong, (S)hort, (F)loat, (D)ouble, and N is the number of such items. The type alone at the end means all following items are of the same type. Example: "I:3;F:2;C" means 3 Integers, 2 Floats and Characters until the end. The format parameter is used for communicating between different platforms.

Definition at line 44 of file Event.cc.

44  :
45  fName(name), fFormat(fmt), fTime(Time::none), fQoS(0), fEmpty(true)
46 {
47 }
bool fEmpty
Quality of service.
Definition: Event.h:17
int fQoS
Time stamp.
Definition: Event.h:16
std::string fFormat
A name associated with the event.
Definition: Event.h:10
Do not initialize the time.
Definition: Time.h:51
Time fTime
Data associated with this event.
Definition: Event.h:15
std::string fName
Definition: Event.h:9