Version: 9.15.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 void notifyObserverFromClone (Node *originalInstance, const std::string &event, Node *clonedInstanceGeneratingEvent)
 
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 32 of file ExampleOfObserversPluginForDriver.cxx.

Constructor & Destructor Documentation

◆ PluginObserver()

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

Definition at line 35 of file ExampleOfObserversPluginForDriver.cxx.

35 :_fe(fe) { }
YACS::ENGINE::ForEachLoop * _fe

Member Function Documentation

◆ notifyObserver()

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

Reimplemented from YACS::ENGINE::Observer.

Definition at line 43 of file ExampleOfObserversPluginForDriver.cxx.

44 {// Customize here !
45  std::cerr << "------------" << event << std::endl;
46 }

◆ notifyObserver2()

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

Reimplemented from YACS::ENGINE::Observer.

Definition at line 48 of file ExampleOfObserversPluginForDriver.cxx.

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

Member Data Documentation

◆ _fe

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

Definition at line 40 of file ExampleOfObserversPluginForDriver.cxx.


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