Version: 8.3.0
PluginObserverKeeper Class Reference
Collaboration diagram for PluginObserverKeeper:

Public Member Functions

 ~PluginObserverKeeper ()
 
void clean ()
 
void registerObserver (YACS::ENGINE::Observer *newObs)
 

Private Attributes

std::vector
< YACS::ENGINE::Observer * > 
_observers
 

Detailed Description

Definition at line 60 of file ExampleOfObserversPluginForDriver.cxx.

Constructor & Destructor Documentation

PluginObserverKeeper::~PluginObserverKeeper ( )
inline

Definition at line 63 of file ExampleOfObserversPluginForDriver.cxx.

References clean().

63 { clean(); }

Member Function Documentation

void PluginObserverKeeper::clean ( )
inline

Definition at line 64 of file ExampleOfObserversPluginForDriver.cxx.

References _observers.

Referenced by CleanUpObservers(), and ~PluginObserverKeeper().

64 { for(std::vector<YACS::ENGINE::Observer *>::iterator it=_observers.begin();it!=_observers.end();it++) delete *it; _observers.clear(); }
void PluginObserverKeeper::registerObserver ( YACS::ENGINE::Observer newObs)
inline

Definition at line 65 of file ExampleOfObserversPluginForDriver.cxx.

References _observers.

Referenced by DefineCustomObservers().

65 { _observers.push_back(newObs); }

Member Data Documentation

std::vector<YACS::ENGINE::Observer *> PluginObserverKeeper::_observers
private

Definition at line 67 of file ExampleOfObserversPluginForDriver.cxx.

Referenced by clean(), and registerObserver().


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