openfluid::core::DistributedEvent Class Reference

Class defining a discrete event, including attached information. More...

List of all members.

Public Member Functions

 DistributedEvent ()
 DistributedEvent (DateTime Date)
 ~DistributedEvent ()
bool isInfoExists (wxString Key)
bool isInfoEquals (wxString Key, wxString Value)
bool isInfoEquals (wxString Key, long Value)
bool isInfoEquals (wxString Key, double Value)
bool isInfoEquals (wxString Key, ScalarValue *Info)
int getInfosCount ()
EventInfosMap getInfos ()
DateTime getDateTime ()
bool getInfoAsString (wxString Key, wxString *Info)
bool getInfoAsLong (wxString Key, long *Info)
bool getInfoAsDouble (wxString Key, double *Info)
bool getInfoAsScalarValue (wxString Key, ScalarValue *Info)
bool addInfo (wxString Key, wxString Info)
void println ()


Detailed Description

Class defining a discrete event, including attached information.

Each event attached information is represented by a Key-Value couple :


Constructor & Destructor Documentation

openfluid::core::DistributedEvent::DistributedEvent (  ) 

Default constructor

openfluid::core::DistributedEvent::DistributedEvent ( DateTime  Date  ) 

Constructor

Parameters:
[in] Date the date and time of the event

openfluid::core::DistributedEvent::~DistributedEvent (  ) 

Destructor


Member Function Documentation

bool openfluid::core::DistributedEvent::isInfoExists ( wxString  Key  ) 

Returns true if the information exists

Parameters:
[in] Key the requested information key

bool openfluid::core::DistributedEvent::isInfoEquals ( wxString  Key,
wxString  Value 
)

Returns true if the information exists and equals the given string value

Parameters:
[in] Key the requested information key
[in] Value the requested value

bool openfluid::core::DistributedEvent::isInfoEquals ( wxString  Key,
long  Value 
)

Returns true if the information exists and equals the given long value

Parameters:
[in] Key the requested information key
[in] Value the requested value

bool openfluid::core::DistributedEvent::isInfoEquals ( wxString  Key,
double  Value 
)

Returns true if the information exists and equals the given double value

Parameters:
[in] Key the requested information key
[in] Value the requested value

bool openfluid::core::DistributedEvent::isInfoEquals ( wxString  Key,
ScalarValue Info 
)

Returns true if the information exists and equals the given ScalarValue value

Parameters:
[in] Key the requested information key
[in] Info the requested value

int openfluid::core::DistributedEvent::getInfosCount (  )  [inline]

Returns the number of information

EventInfosMap openfluid::core::DistributedEvent::getInfos (  )  [inline]

Returns all the informations as an EventInfosMap

DateTime openfluid::core::DistributedEvent::getDateTime (  )  [inline]

Returns the date and time of the event

bool openfluid::core::DistributedEvent::getInfoAsString ( wxString  Key,
wxString *  Info 
)

Gets an information as a string

Parameters:
[in] Key the requested information key
[out] Info the value corresponding to the requested key
Returns:
true if the key exists and the conversion to the requested type is correct

bool openfluid::core::DistributedEvent::getInfoAsLong ( wxString  Key,
long *  Info 
)

Gets an information as a long integer

Parameters:
[in] Key the requested information key
[out] Info the value corresponding to the requested key
Returns:
true if the key exists and the conversion to the requested type is correct

bool openfluid::core::DistributedEvent::getInfoAsDouble ( wxString  Key,
double *  Info 
)

Gets an information as a double

Parameters:
[in] Key the requested information key
[out] Info the value corresponding to the requested key
Returns:
true if the key exists and the conversion to the requested type is correct

bool openfluid::core::DistributedEvent::getInfoAsScalarValue ( wxString  Key,
ScalarValue Info 
)

Gets an information as a ScalarValue

Parameters:
[in] Key the requested information key
[out] Info the value corresponding to the requested key
Returns:
true if the key exists and the conversion to the requested type is correct

bool openfluid::core::DistributedEvent::addInfo ( wxString  Key,
wxString  Info 
)

Adds an information to the event

Parameters:
[in] Key the key of the added information
[in] Info the value of the added information
Returns:
true if the adding is correct (key does not already exists)

void openfluid::core::DistributedEvent::println (  ) 

Prints the content of the event to stdout


Generated using Doxygen 1.5.5
Creative Commons License Creative Commons By-NC-ND license