A class to represent an event. More...
#include <Event.h>
Public Member Functions | |
| Event * | clone () const | 
| It returns a clone of this event.  More... | |
| std::string | getId () const | 
| It returns the object identification.  More... | |
| te::gm::Geometry * | getLocation () const | 
| It returns the location where the event happened.  More... | |
| void | getObjects (std::vector< te::st::Object * > &output) const | 
| It returns the objects involved to the event.  More... | |
| te::dt::DateTime * | getTime () const | 
| It returns the time when the event happened.  More... | |
| Event & | operator= (const Event &other) | 
| Copy assignment operator.  More... | |
| void | setId (const std::string &id) | 
| It sets the object identification.  More... | |
| void | setLocation (te::gm::Geometry *g) | 
| It sets the location where the event happened.  More... | |
| void | setObjects (std::vector< te::st::Object * > &objs) | 
| It sets the objects involved to the event.  More... | |
| void | setTime (te::dt::DateTime *t) | 
| It sets the time when the event happened.  More... | |
| virtual | ~Event () | 
| Virtual destructor.  More... | |
Event Constructors  | |
| Event (const std::string &id, te::dt::DateTime *t, te::gm::Geometry *g) | |
| Constructor.  More... | |
| Event (const std::string &id, te::dt::DateTime *t, te::gm::Geometry *g, std::vector< te::st::Object * > objs) | |
| Constructor.  More... | |
| Event (const Event &ts) | |
| Copy constructor.  More... | |
Private Attributes | |
| std::string | m_id | 
| The identification of the event.  More... | |
| std::auto_ptr< te::gm::Geometry > | m_location | 
| The location where the event happened.  More... | |
| std::vector< te::st::Object * > | m_objects | 
| The objects involved to the event.  More... | |
| std::auto_ptr< te::dt::DateTime > | m_time | 
| The time when the event happened.  More... | |
A class to represent an event.
An event is an individual episode with a definite beginning and end which can involve one or more objects.
| te::st::Event::Event | ( | const std::string & | id, | 
| te::dt::DateTime * | t, | ||
| te::gm::Geometry * | g | ||
| ) | 
Constructor.
| id | The identification of the event. | 
| t | The time when the event happened. | 
| g | The location where the event happened. | 
| te::st::Event::Event | ( | const std::string & | id, | 
| te::dt::DateTime * | t, | ||
| te::gm::Geometry * | g, | ||
| std::vector< te::st::Object * > | objs | ||
| ) | 
Constructor.
| id | The identification of the event. | 
| t | The time when the event happened. | 
| g | The location where the event happened. | 
| objs | The objects involved to the event. | 
| te::st::Event::Event | ( | const Event & | ts | ) | 
Copy constructor.
      
  | 
  virtual | 
Virtual destructor.
| Event* te::st::Event::clone | ( | ) | const | 
It returns a clone of this event.
| std::string te::st::Event::getId | ( | ) | const | 
It returns the object identification.
| te::gm::Geometry* te::st::Event::getLocation | ( | ) | const | 
It returns the location where the event happened.
| void te::st::Event::getObjects | ( | std::vector< te::st::Object * > & | output | ) | const | 
It returns the objects involved to the event.
| te::dt::DateTime* te::st::Event::getTime | ( | ) | const | 
It returns the time when the event happened.
| void te::st::Event::setId | ( | const std::string & | id | ) | 
It sets the object identification.
| id | The object identification. | 
| void te::st::Event::setLocation | ( | te::gm::Geometry * | g | ) | 
It sets the location where the event happened.
| t | The location where the event happened. | 
| void te::st::Event::setObjects | ( | std::vector< te::st::Object * > & | objs | ) | 
It sets the objects involved to the event.
| objs | The objects involved to the event. | 
| void te::st::Event::setTime | ( | te::dt::DateTime * | t | ) | 
It sets the time when the event happened.
| t | The time when the event happened. | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |