LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | List of all members
lsst::ctrl::events::EventFactory Class Reference

create LSST Events from JMS Messages More...

#include <EventFactory.h>

Public Member Functions

 EventFactory ()
 
 ~EventFactory ()
 

Static Public Member Functions

static EventcreateEvent (cms::TextMessage *msg)
 

Detailed Description

create LSST Events from JMS Messages

Definition at line 58 of file EventFactory.h.

Constructor & Destructor Documentation

lsst::ctrl::events::EventFactory::EventFactory ( )

Definition at line 57 of file EventFactory.cc.

57  {
58 }
lsst::ctrl::events::EventFactory::~EventFactory ( )

Definition at line 60 of file EventFactory.cc.

60  {
61 }

Member Function Documentation

Event * lsst::ctrl::events::EventFactory::createEvent ( cms::TextMessage *  msg)
static

Definition at line 63 of file EventFactory.cc.

63  {
64  vector<std::string> names = msg->getPropertyNames();
65 
66  std::string _type = msg->getStringProperty("TYPE");
67 
68  if (_type == EventTypes::LOG) {
69  return new LogEvent(msg);
70  } else if (_type == EventTypes::STATUS) {
71  return new StatusEvent(msg);
72  } else if (_type == EventTypes::COMMAND) {
73  return new CommandEvent(msg);
74  }
75  return new Event(msg);
76 }
static const std::string LOG
Definition: EventTypes.h:47
static const std::string STATUS
Definition: EventTypes.h:48
static const std::string COMMAND
Definition: EventTypes.h:49

The documentation for this class was generated from the following files: