34 #ifndef LSST_CTRL_EVENTS_EVENT_H
35 #define LSST_CTRL_EVENTS_EVENT_H
37 #include <cms/Connection.h>
38 #include <cms/Session.h>
39 #include <cms/Message.h>
47 #include "boost/property_tree/ptree.hpp"
66 static const std::string
TYPE;
119 Event(cms::TextMessage *msg);
135 std::string getPubDate();
141 long long getPubTime();
146 void setPubTime(
long long t);
152 long long getEventTime();
157 void setEventTime(
long long nsecs);
162 void updateEventTime();
168 std::string getEventDate();
174 std::string getRunId();
180 std::string getType();
186 std::string getStatus();
192 void setStatus(std::string
status);
198 void setTopic(std::string topic);
204 std::string getTopic();
210 vector<std::string> getFilterablePropertyNames();
216 vector<std::string> getCustomPropertyNames();
228 virtual void populateHeader(cms::TextMessage* msg)
const;
233 void marshall(cms::TextMessage *msg);
240 void _constructor(std::string
const& runid,
PropertySet const& properties,
PropertySet const& filterable);
242 template<
typename T>
void add(std::string
const&
name, std::string
const& tag,
PropertySet const& properties, boost::property_tree::ptree& child);
246 std::string marshall(
PropertySet const& properties);
250 bool addDataItem(std::string
const& typeInfo, boost::property_tree::ptree& item, std::string
const& key,
PropertySet& properties);
static const std::string STATUS
static const std::string TOPIC
table::Key< std::string > name
static const std::string RUNID
boost::shared_ptr< PropertySet > Ptr
static const std::string EVENTTIME
lsst::daf::base::PropertySet PropertySet
static const std::string PUBTIME
set< std::string > _keywords
PropertySet::Ptr _filterable
static const std::string TYPE
Representation of an LSST Event.
Class for storing generic metadata.
static const std::string UNINITIALIZED
Interface for PropertySet class.