Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LookoutPointAtEvent Class Reference

#include <LookoutEvents.h>

Inheritance diagram for LookoutPointAtEvent:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 28 of file LookoutEvents.h.

Public Member Functions

virtual LookoutEventType_t getLookoutEventType () const
 LookoutPointAtEvent (const NEWMAT::Matrix &mat)
 LookoutPointAtEvent (const NEWMAT::Matrix &mat, EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur=0)
 LookoutPointAtEvent (const NEWMAT::Matrix &mat, EventGeneratorID_t gid, unsigned int 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

NEWMAT::Matrix toBaseMatrix


Constructor & Destructor Documentation

LookoutPointAtEvent::LookoutPointAtEvent ( const NEWMAT::Matrix mat  )  [inline]

Definition at line 32 of file LookoutEvents.h.

Referenced by clone().

LookoutPointAtEvent::LookoutPointAtEvent ( const NEWMAT::Matrix mat,
EventGeneratorID_t  gid,
unsigned int  sid,
EventTypeID_t  tid,
unsigned int  dur = 0 
) [inline]

Definition at line 33 of file LookoutEvents.h.

LookoutPointAtEvent::LookoutPointAtEvent ( const NEWMAT::Matrix mat,
EventGeneratorID_t  gid,
unsigned int  sid,
EventTypeID_t  tid,
unsigned int  dur,
const std::string &  n,
float  mag 
) [inline]

Definition at line 36 of file LookoutEvents.h.


Member Function Documentation

virtual EventBase* LookoutPointAtEvent::clone (  )  const [inline, 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 EventBase.

Reimplemented in LookoutSketchEvent, and LookoutIREvent.

Definition at line 39 of file LookoutEvents.h.

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

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

Reimplemented from EventBase.

Reimplemented in LookoutIREvent.

Definition at line 22 of file LookoutEvents.cc.

Referenced by LookoutIREvent::getBinSize().

virtual unsigned int LookoutPointAtEvent::getClassTypeID (  )  const [inline, 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 EventBase.

Reimplemented in LookoutIREvent.

Definition at line 40 of file LookoutEvents.h.

std::string LookoutPointAtEvent::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 EventBase.

Reimplemented in LookoutIREvent.

Definition at line 12 of file LookoutEvents.cc.

Referenced by LookoutIREvent::getDescription().

virtual LookoutEventType_t LookoutPointAtEvent::getLookoutEventType (  )  const [inline, virtual]

Implements LookoutEvent.

Reimplemented in LookoutSketchEvent, and LookoutIREvent.

Definition at line 31 of file LookoutEvents.h.

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

load from binary format

Reimplemented from EventBase.

Reimplemented in LookoutIREvent.

Definition at line 33 of file LookoutEvents.cc.

Referenced by LookoutIREvent::loadBinaryBuffer().

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

load from XML format

Reimplemented from EventBase.

Reimplemented in LookoutIREvent.

Definition at line 62 of file LookoutEvents.cc.

Referenced by LookoutIREvent::loadXML().

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

save to binary format

Reimplemented from EventBase.

Reimplemented in LookoutIREvent.

Definition at line 48 of file LookoutEvents.cc.

Referenced by LookoutIREvent::saveBinaryBuffer().

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

save to XML format

Reimplemented from EventBase.

Reimplemented in LookoutIREvent.

Definition at line 100 of file LookoutEvents.cc.

Referenced by LookoutIREvent::saveXML().


Member Data Documentation


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

Tekkotsu v3.0
Generated Wed Oct 4 00:05:06 2006 by Doxygen 1.4.7