torc-master
|
ForbiddenEvent class lists events which are forbidden during a period of times which is specified by time interval. Time interval is used to describe an interval between two times. Times can be described by events or offset events. More...
#include <ForbiddenEvent.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef VisitorType < ForbiddenEvent > | Visitor |
typedef ForbiddenEvent | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
const EventSharedPtr | getStartTimeInterval () const |
void | setStartTimeInterval (const EventSharedPtr &inSource) |
const EventSharedPtr | getEndTimeInterval () const |
void | setEndTimeInterval (const EventSharedPtr &inSource) |
const Value | getDuration () const |
void | setDuration (const Value &inValue) |
void | getEvents (std::list< EventSharedPtr > &outEvents) const |
void | setEvents (const std::list< EventSharedPtr > &inEvents) |
void | addEvent (const EventSharedPtr &inSource) |
virtual | ~ForbiddenEvent () throw () |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
Protected Member Functions | |
ForbiddenEvent () | |
Private Member Functions | |
ForbiddenEvent (const ForbiddenEvent &source) | |
ForbiddenEvent & | operator= (const ForbiddenEvent &source) |
Private Attributes | |
EventSharedPtr | mStartTimeInterval |
EventSharedPtr | mEndTimeInterval |
Value | mDuration |
std::list< EventSharedPtr > | mEvents |
Friends | |
class | FactoryType< ForbiddenEvent > |
ForbiddenEvent class lists events which are forbidden during a period of times which is specified by time interval. Time interval is used to describe an interval between two times. Times can be described by events or offset events.
Definition at line 40 of file ForbiddenEvent.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 35 of file SelfReferencing.hpp.
Convenience class to visit an ForbiddenEvent.
Definition at line 47 of file ForbiddenEvent.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
|
virtual |
Definition at line 125 of file ForbiddenEvent.cpp.
|
protected |
Definition at line 122 of file ForbiddenEvent.cpp.
|
private |
|
virtual |
Implements torc::generic::Visitable.
Definition at line 59 of file ForbiddenEvent.cpp.
void torc::generic::ForbiddenEvent::addEvent | ( | const EventSharedPtr & | inSource | ) |
Add an event to the list of events
[in] | inSource | Pointer to event to be appended to |
Definition at line 113 of file ForbiddenEvent.cpp.
|
inline |
Get the duration of timeInterval, if end event is absent.
Definition at line 170 of file ForbiddenEvent.hpp.
|
inline |
Get the pointer to end event/offsetEvent of timeInterval
Definition at line 162 of file ForbiddenEvent.hpp.
|
inline |
Get all the events of this forbiddenEvent.
[out] | outEvents | List of events to be appended to |
Definition at line 179 of file ForbiddenEvent.hpp.
|
inlineinherited |
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
[out] | ptr | Set to a shared pointer to this object |
|
inline |
Get the pointer to start event/offsetEvent of timeInterval
Definition at line 154 of file ForbiddenEvent.hpp.
|
private |
void torc::generic::ForbiddenEvent::setDuration | ( | const Value & | inValue | ) |
Set the duration of timeInterval, if end event is absent.
[in] | inValue | Duration of timeInterval, if end event is absent. |
Definition at line 88 of file ForbiddenEvent.cpp.
void torc::generic::ForbiddenEvent::setEndTimeInterval | ( | const EventSharedPtr & | inSource | ) |
Set the pointer to end event/offsetEvent of timeInterval
[in] | inSource | Pointer to end event/offsetEvent of timeInterval |
Definition at line 80 of file ForbiddenEvent.cpp.
void torc::generic::ForbiddenEvent::setEvents | ( | const std::list< EventSharedPtr > & | inEvents | ) |
Set all the events of this forbiddenEvent.
[in] | inEvents | List of events to be appended to |
Set all the events of this forbiddenEvent.
[out] | inEvents | List of events to be appended to |
Definition at line 97 of file ForbiddenEvent.cpp.
void torc::generic::ForbiddenEvent::setStartTimeInterval | ( | const EventSharedPtr & | inSource | ) |
Set the pointer to start event/offsetEvent of timeInterval
[in] | inSource | Pointer to start event/offsetEvent of timeInterval |
Definition at line 72 of file ForbiddenEvent.cpp.
|
inlineinherited |
Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.
[in] | weakThis | A weak pointer to this object |
|
friend |
Definition at line 41 of file ForbiddenEvent.hpp.
|
private |
Definition at line 145 of file ForbiddenEvent.hpp.
|
private |
Definition at line 144 of file ForbiddenEvent.hpp.
|
private |
Definition at line 146 of file ForbiddenEvent.hpp.
|
private |
Definition at line 143 of file ForbiddenEvent.hpp.