38 const std::list<EventSharedPtr>& inEvents,
const TimingSharedPtr& inTiming,
42 create(newForbiddenEvent);
43 newForbiddenEvent->setStartTimeInterval(inStartTimeInterval);
44 newForbiddenEvent->setEndTimeInterval(inEndTimeInterval);
45 newForbiddenEvent->setEvents(inEvents);
46 if(inDuration.getIsSet()) {
47 newForbiddenEvent->setDuration(inDuration);
50 inTiming->addForbiddenEvent(newForbiddenEvent);
52 return newForbiddenEvent;
98 std::list<EventSharedPtr>::const_iterator it = inEvents.begin();
99 for(; it != inEvents.end(); it++) {
123 mStartTimeInterval(), mEndTimeInterval(), mDuration(), mEvents() {}
void setEvents(const std::list< EventSharedPtr > &inEvents)
void setStartTimeInterval(const EventSharedPtr &inSource)
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
EventSharedPtr mEndTimeInterval
void setDuration(const Value &inValue)
The Error object thrown by different methods of EdifOM.
virtual ~ForbiddenEvent()
virtual void accept(BaseVisitor &inoutVisitor)
A base class for Visitor.
void setEndTimeInterval(const EventSharedPtr &inSource)
boost::shared_ptr< ForbiddenEvent > ForbiddenEventSharedPtr
ForbiddenEvent class lists events which are forbidden during a period of times which is specified by ...
boost::shared_ptr< Event > EventSharedPtr
std::list< EventSharedPtr > mEvents
virtual ForbiddenEventSharedPtr newForbiddenEventPtr(const EventSharedPtr &inStartTimeInterval, const EventSharedPtr &inEndTimeInterval, const std::list< EventSharedPtr > &inEvents, const TimingSharedPtr &inTiming=TimingSharedPtr(), const Value &inDuration=Value())
void addEvent(const EventSharedPtr &inSource)
boost::shared_ptr< Timing > TimingSharedPtr
EventSharedPtr mStartTimeInterval
An object that receives an inoutVisitor.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)