|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Representation of an LSST Event. More...
#include <Event.h>
Public Member Functions | |
| Event () | |
| Constructor for Event with no properties. More... | |
| Event (PropertySet const &properties) | |
| Constructor for Event. More... | |
| Event (PropertySet const &properties, PropertySet const &filterable) | |
| Constructor for Event. More... | |
| Event (std::string const &runid, PropertySet::Ptr const properties) | |
| Constructor for Event. More... | |
| Event (std::string const &runid, PropertySet const &properties) | |
| Constructor for Event. More... | |
| Event (std::string const &runid, PropertySet const &properties, PropertySet const &filterable) | |
| Constructor for Event. More... | |
| Event (cms::TextMessage *msg) | |
| Constructor for Event. More... | |
| virtual | ~Event () |
| destructor More... | |
| PropertySet::Ptr | getPropertySet () const |
| retrieve the PropertySet for this Event More... | |
| std::string | getPubDate () |
| get the publication date of this Event, in ASCII More... | |
| long long | getPubTime () |
| get the publication time of this Event More... | |
| void | setPubTime (long long t) |
| set the publication time of this Event More... | |
| long long | getEventTime () |
| get the event creation time More... | |
| void | setEventTime (long long nsecs) |
| set the event creation time More... | |
| void | updateEventTime () |
| update the Event time to the current time More... | |
| std::string | getEventDate () |
| get the Event Date More... | |
| std::string | getRunId () |
| get the RunId for this Event More... | |
| std::string | getType () |
| get the Event type More... | |
| std::string | getStatus () |
| get the Event status More... | |
| void | setStatus (std::string status) |
| set the Event status More... | |
| void | setTopic (std::string topic) |
| set the Event topic More... | |
| std::string | getTopic () |
| get the Event topic More... | |
| vector< std::string > | getFilterablePropertyNames () |
| return all filterable property names More... | |
| vector< std::string > | getCustomPropertyNames () |
| return all custom property names More... | |
| PropertySet::Ptr | getCustomPropertySet () const |
| return all custom property set More... | |
| virtual void | populateHeader (cms::TextMessage *msg) const |
| populate a cms::TextMessage header with properties More... | |
| void | marshall (cms::TextMessage *msg) |
| marshall values in this event into a cms::TextMessage More... | |
Static Public Attributes | |
| static const std::string | TYPE = "TYPE" |
| static const std::string | EVENTTIME = "EVENTTIME" |
| static const std::string | RUNID = "RUNID" |
| static const std::string | STATUS = "STATUS" |
| static const std::string | TOPIC = "TOPIC" |
| static const std::string | PUBTIME = "PUBTIME" |
| static const std::string | UNINITIALIZED = "uninitialized" |
Protected Member Functions | |
| void | _init () |
| void | _constructor (std::string const &runid, PropertySet const &properties, PropertySet const &filterable) |
| template<typename T > | |
| void | add (std::string const &name, std::string const &tag, PropertySet const &properties, boost::property_tree::ptree &child) |
Protected Attributes | |
| PropertySet::Ptr | _psp |
| PropertySet::Ptr | _filterable |
| set< std::string > | _keywords |
Private Member Functions | |
| std::string | marshall (PropertySet const &properties) |
| PropertySet::Ptr | processTextMessage (cms::TextMessage *textMessage) |
| PropertySet::Ptr | unmarshall (std::string const &text) |
| PropertySet::Ptr | parsePropertySet (boost::property_tree::ptree child) |
| bool | addDataItem (std::string const &typeInfo, boost::property_tree::ptree &item, std::string const &key, PropertySet &properties) |
| lsst.ctrl.events::Event::Event | ( | ) |
Constructor for Event with no properties.
| lsst.ctrl.events::Event::Event | ( | PropertySet const & | properties | ) |
Constructor for Event.
| [in] | properties | the PropertySet to use to populate the event |
Definition at line 173 of file Event.cc.
| lsst.ctrl.events::Event::Event | ( | PropertySet const & | properties, |
| PropertySet const & | filterable | ||
| ) |
Constructor for Event.
| [in] | properties | the PropertySet to use to populate the event |
| [in] | filterable | PropertySet of types to be added to the header so they can be filtered. |
Definition at line 179 of file Event.cc.
| lsst.ctrl.events::Event::Event | ( | std::string const & | runid, |
| PropertySet::Ptr const | properties | ||
| ) |
Constructor for Event.
| [in] | runid | A "run id" to place in the header of this event |
| [in] | properties | the PropertySet::Ptr to use to populate the event |
Definition at line 184 of file Event.cc.
| lsst.ctrl.events::Event::Event | ( | std::string const & | runid, |
| PropertySet const & | properties | ||
| ) |
Constructor for Event.
| [in] | runid | A "run id" to place in the header of this event |
| [in] | properties | the PropertySet to use to populate the event |
Definition at line 189 of file Event.cc.
| lsst.ctrl.events::Event::Event | ( | std::string const & | runid, |
| PropertySet const & | properties, | ||
| PropertySet const & | filterable | ||
| ) |
Constructor for Event.
| [in] | runid | A "run id" to place in the header of this event |
| [in] | properties | the PropertySet to use to populate the event |
| [in] | filterable | PropertySet of types to be added to the header so they can be filtered. |
Definition at line 194 of file Event.cc.
| lsst.ctrl.events::Event::Event | ( | cms::TextMessage * | msg | ) |
Constructor for Event.
| [in] | msg | A cms::TextMessage to convert into an Event object |
Definition at line 93 of file Event.cc.
|
virtual |
|
protected |
Definition at line 198 of file Event.cc.
|
protected |
|
private |
private method to try to add data to a property set
| typeInfo | a string containing the name of the data type |
| item | a node of a boost::property_tree::ptree containing data |
| key | the name of the data |
| ps | a PropertySet to store the name and data into. |
Definition at line 435 of file Event.cc.
| vector< std::string > lsst.ctrl.events::Event::getCustomPropertyNames | ( | ) |
| PropertySet::Ptr lsst.ctrl.events::Event::getCustomPropertySet | ( | ) | const |
| std::string lsst.ctrl.events::Event::getEventDate | ( | ) |
get the Event Date
Definition at line 283 of file Event.cc.
| long long lsst.ctrl.events::Event::getEventTime | ( | ) |
| vector< std::string > lsst.ctrl.events::Event::getFilterablePropertyNames | ( | ) |
| PropertySet::Ptr lsst.ctrl.events::Event::getPropertySet | ( | ) | const |
| std::string lsst.ctrl.events::Event::getPubDate | ( | ) |
get the publication date of this Event, in ASCII
Definition at line 318 of file Event.cc.
| long long lsst.ctrl.events::Event::getPubTime | ( | ) |
| std::string lsst.ctrl.events::Event::getRunId | ( | ) |
| std::string lsst.ctrl.events::Event::getStatus | ( | ) |
| std::string lsst.ctrl.events::Event::getTopic | ( | ) |
| std::string lsst.ctrl.events::Event::getType | ( | void | ) |
| void lsst.ctrl.events::Event::marshall | ( | cms::TextMessage * | msg | ) |
marshall values in this event into a cms::TextMessage
Definition at line 355 of file Event.cc.
|
private |
Definition at line 376 of file Event.cc.
|
private |
private method to iterate through the representation of a propertyset within the boost::property_tree::ptree
| child | a boost::property_tree::ptree to iterate through |
Definition at line 471 of file Event.cc.
|
virtual |
populate a cms::TextMessage header with properties
| [in] | msg | a cms::TextMessage |
Reimplemented in lsst.ctrl.events::CommandEvent, lsst.ctrl.events::StatusEvent, and lsst.ctrl.events::LogEvent.
Definition at line 241 of file Event.cc.
|
private |
private method unmarshall the DataProperty from the TextMessage
Definition at line 419 of file Event.cc.
| void lsst.ctrl.events::Event::setEventTime | ( | long long | nsecs | ) |
| void lsst.ctrl.events::Event::setPubTime | ( | long long | t | ) |
| void lsst.ctrl.events::Event::setStatus | ( | std::string | status | ) |
| void lsst.ctrl.events::Event::setTopic | ( | std::string | topic | ) |
|
private |
private method unmarshall the DataProperty from a text string
| text | a JSON text string |
Definition at line 492 of file Event.cc.
| void lsst.ctrl.events::Event::updateEventTime | ( | ) |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.5