Version: 8.3.0
PluginObserver Class Reference
Inheritance diagram for PluginObserver:
Collaboration diagram for PluginObserver:

Public Member Functions

 PluginObserver (YACS::ENGINE::ForEachLoop *fe)
 
- Public Member Functions inherited from YACS::ENGINE::Observer
virtual ~Observer ()
 

Private Member Functions

void notifyObserver (YACS::ENGINE::Node *object, const std::string &event)
 
void notifyObserver2 (YACS::ENGINE::Node *object, const std::string &event, void *something)
 

Private Attributes

YACS::ENGINE::ForEachLoop_fe
 

Detailed Description

Definition at line 33 of file ExampleOfObserversPluginForDriver.cxx.

Constructor & Destructor Documentation

PluginObserver::PluginObserver ( YACS::ENGINE::ForEachLoop fe)
inline

Definition at line 36 of file ExampleOfObserversPluginForDriver.cxx.

36 :_fe(fe) { }

Member Function Documentation

void PluginObserver::notifyObserver ( YACS::ENGINE::Node object,
const std::string &  event 
)
privatevirtual

Reimplemented from YACS::ENGINE::Observer.

Definition at line 44 of file ExampleOfObserversPluginForDriver.cxx.

45 {// Customize here !
46  std::cerr << "------------" << event << std::endl;
47 }
void PluginObserver::notifyObserver2 ( YACS::ENGINE::Node object,
const std::string &  event,
void *  something 
)
privatevirtual

Reimplemented from YACS::ENGINE::Observer.

Definition at line 49 of file ExampleOfObserversPluginForDriver.cxx.

50 {// Customize here !
51  std::ostringstream oss;
52  if(event=="progress_ok")
53  {
54  int itemOk(*reinterpret_cast<int *>(something));
55  oss << event << " " << itemOk;
56  std::cerr << oss.str() << std::endl;
57  }
58 }

Member Data Documentation

YACS::ENGINE::ForEachLoop* PluginObserver::_fe
private

Definition at line 41 of file ExampleOfObserversPluginForDriver.cxx.


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