COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Public Attributes | Private Attributes | List of all members
Notifier Class Reference

#include <Notifier.hpp>

Public Member Functions

 Notifier (const Handle< common::PE::Manager > &manager)
 
 ~Notifier ()
 
void listen_to_event (const std::string &name, bool notify_once)
 
void begin_notify ()
 
void new_event (const std::string &name, common::SignalArgs &args)
 

Public Attributes

boost::signals2::signal< void(const std::string &, common::SignalArgs &) > event_occured
 

Private Attributes

common::NotificationQueuem_observed_queue
 
std::map< std::string, bool > m_once_notifying_events
 
Handle< common::PE::Managerm_manager
 

Detailed Description

Definition at line 28 of file Notifier.hpp.

Constructor & Destructor Documentation

Notifier ( const Handle< common::PE::Manager > &  manager)

Definition at line 21 of file Notifier.cpp.

~Notifier ( )

Definition at line 31 of file Notifier.cpp.

Member Function Documentation

void begin_notify ( )

Definition at line 48 of file Notifier.cpp.

void listen_to_event ( const std::string &  name,
bool  notify_once 
)

Definition at line 38 of file Notifier.cpp.

void new_event ( const std::string &  name,
common::SignalArgs args 
)
Todo:
Ugly!!! should use a boost::signal2

Definition at line 58 of file Notifier.cpp.

Member Data Documentation

boost::signals2::signal< void (const std::string &, common::SignalArgs &) > event_occured

Definition at line 42 of file Notifier.hpp.

Handle<common::PE::Manager> m_manager
private

Definition at line 54 of file Notifier.hpp.

common::NotificationQueue* m_observed_queue
private

Definition at line 50 of file Notifier.hpp.

std::map<std::string, bool> m_once_notifying_events
private

Definition at line 52 of file Notifier.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin