Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LookoutIREvent Class Reference

#include <LookoutEvents.h>

Inheritance diagram for LookoutIREvent:

Detailed Description

Definition at line 87 of file LookoutEvents.h.

List of all members.

Public Member Functions

virtual LookoutEventType_t getLookoutEventType () const
 LookoutIREvent ()
 LookoutIREvent (bool _success, float dist, const fmat::Transform &mat)
 LookoutIREvent (bool _success, float dist, const fmat::Transform &mat, EventGeneratorID_t gid, size_t sid, EventTypeID_t tid, unsigned int dur=0)
 LookoutIREvent (bool _success, float dist, const fmat::Transform &mat, EventGeneratorID_t gid, size_t sid, EventTypeID_t tid, unsigned int dur, const std::string &n, float mag)
virtual EventBaseclone () const
 allows a copy to be made of an event, supporting polymorphism
virtual unsigned int getClassTypeID () const
 All subclasses should override this and return a unique ID for their class.
virtual std::string getDescription (bool showTypeSpecific=true, unsigned int verbosity=0) const
 generates a description of the event with variable verbosity
virtual unsigned int getBinSize () const
 should return the minimum size needed if using binary format (i.e. not XML)
virtual unsigned int loadBinaryBuffer (const char buf[], unsigned int len)
 load from binary format
virtual unsigned int saveBinaryBuffer (char buf[], unsigned int len) const
 save to binary format
virtual void loadXML (xmlNode *node)
 load from XML format
virtual void saveXML (xmlNode *node) const
 save to XML format

Public Attributes

float distance

Static Protected Attributes

static const
EventBase::classTypeID_t 
autoRegisterLookoutIREvent = getTypeRegistry().registerType<LookoutIREvent>(makeClassTypeID("LOIR"))
 causes class type id to automatically be regsitered with EventBase's FamilyFactory (getTypeRegistry())

Constructor & Destructor Documentation

LookoutIREvent::LookoutIREvent (  ) 

Definition at line 91 of file LookoutEvents.h.

Referenced by clone().

LookoutIREvent::LookoutIREvent ( bool  _success,
float  dist,
const fmat::Transform mat 
)

Definition at line 92 of file LookoutEvents.h.

LookoutIREvent::LookoutIREvent ( bool  _success,
float  dist,
const fmat::Transform mat,
EventGeneratorID_t  gid,
size_t  sid,
EventTypeID_t  tid,
unsigned int  dur = 0 
)

Definition at line 93 of file LookoutEvents.h.

LookoutIREvent::LookoutIREvent ( bool  _success,
float  dist,
const fmat::Transform mat,
EventGeneratorID_t  gid,
size_t  sid,
EventTypeID_t  tid,
unsigned int  dur,
const std::string &  n,
float  mag 
)

Definition at line 96 of file LookoutEvents.h.


Member Function Documentation

virtual EventBase* LookoutIREvent::clone (  )  const [virtual]

allows a copy to be made of an event, supporting polymorphism

Must be overridden by all subclasses to allow this to happen

I would like to switch this over to the cloneable interface once the compiler gets updated out of the 3.3 branch... see Cloneable::clone() for a discussion of the issue and implementation notes.

Reimplemented from LookoutPointAtEvent.

Definition at line 99 of file LookoutEvents.h.

unsigned int LookoutIREvent::getBinSize (  )  const [virtual]

should return the minimum size needed if using binary format (i.e. not XML)

Reimplemented from LookoutPointAtEvent.

Definition at line 147 of file LookoutEvents.cc.

virtual unsigned int LookoutIREvent::getClassTypeID (  )  const [virtual]

All subclasses should override this and return a unique ID for their class.

All IDs corresponding to all-capital letters are reserved for future framework expansion. (Thus, user subclasses should contain at least one lower-case letter.) This code can be used when serializing to allow quick identification of the class type by the receiver.

Reimplemented from LookoutPointAtEvent.

Definition at line 100 of file LookoutEvents.h.

std::string LookoutIREvent::getDescription ( bool  showTypeSpecific = true,
unsigned int  verbosity = 0 
) const [virtual]

generates a description of the event with variable verbosity

Parameters:
showTypeSpecific should be read by subclasses to add additional information
verbosity can be one of the following values:

  • 0 - Basic: event_name \t generator_id \t source_id \t type_id
  • 1 - Numerics: event_name \t generator_id \t source_id \t type_id
  • 2 - Timing: event_name \t generator_id \t source_id \t type_id \t duration \t timestamp
  • 3 and above - Full: event_name \t generator_id \t source_id \t type_id \t duration \t timestamp \t magnitude if showTypeSpecific, additional fields will be added after the common fields listed above.

Reimplemented from LookoutPointAtEvent.

Definition at line 137 of file LookoutEvents.cc.

virtual LookoutEventType_t LookoutIREvent::getLookoutEventType (  )  const [virtual]

Reimplemented from LookoutPointAtEvent.

Definition at line 90 of file LookoutEvents.h.

unsigned int LookoutIREvent::loadBinaryBuffer ( const char  buf[],
unsigned int  len 
) [virtual]

load from binary format

Reimplemented from LookoutPointAtEvent.

Definition at line 158 of file LookoutEvents.cc.

void LookoutIREvent::loadXML ( xmlNode node  )  [virtual]

load from XML format

Reimplemented from LookoutPointAtEvent.

Definition at line 183 of file LookoutEvents.cc.

unsigned int LookoutIREvent::saveBinaryBuffer ( char  buf[],
unsigned int  len 
) const [virtual]

save to binary format

Reimplemented from LookoutPointAtEvent.

Definition at line 171 of file LookoutEvents.cc.

void LookoutIREvent::saveXML ( xmlNode node  )  const [virtual]

save to XML format

Reimplemented from LookoutPointAtEvent.

Definition at line 212 of file LookoutEvents.cc.


Member Data Documentation

const EventBase::classTypeID_t LookoutIREvent::autoRegisterLookoutIREvent = getTypeRegistry().registerType<LookoutIREvent>(makeClassTypeID("LOIR")) [static, protected]

causes class type id to automatically be regsitered with EventBase's FamilyFactory (getTypeRegistry())

Definition at line 109 of file LookoutEvents.h.

Referenced by getClassTypeID().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:12 2016 by Doxygen 1.6.3