FACT++  1.0
Event::Event ( const EventImp evt)

Copy constructor.

Copies the all contents from an EventImp. Note, that also the data area is copied. If the name contains a slash ('/') everything before the slash is removed.

Parameters
evtReference to an object of type EventImp.

Definition at line 58 of file Event.cc.

References fName.

58  : EventImp(evt),
59 fName(evt.GetName()), fFormat(evt.GetFormat()),
60 fData(evt.GetText(), evt.GetText()+evt.GetSize()), fTime(evt.GetTime()),
61 fQoS(evt.GetQoS()), fEmpty(evt.IsEmpty())
62 {
63  const size_t pos = fName.find_first_of('/');
64  if (pos!=string::npos)
65  fName = fName.substr(pos+1);
66 }
bool fEmpty
Quality of service.
Definition: Event.h:17
const char * GetText() const
Definition: EventImp.h:88
EventImp()
Constructor. Stores the target state given.
Definition: EventImp.h:20
std::vector< char > fData
A human readable description of the event.
Definition: Event.h:13
virtual Time GetTime() const
Definition: EventImp.h:57
virtual std::string GetFormat() const
Definition: EventImp.h:52
virtual int GetQoS() const
Definition: EventImp.h:58
virtual std::string GetName() const
Definition: EventImp.h:51
int fQoS
Time stamp.
Definition: Event.h:16
std::string fFormat
A name associated with the event.
Definition: Event.h:10
virtual bool IsEmpty() const
Definition: EventImp.h:59
Time fTime
Data associated with this event.
Definition: Event.h:15
std::string fName
Definition: Event.h:9
virtual size_t GetSize() const
Definition: EventImp.h:55