highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HCE::component::ComponentManager Class Reference

#include <ComponentManager.hpp>

Public Member Functions

 ComponentManager ()
void addComponent (Poco::SharedPtr< ComponentBase > componentPtr)
void setTaskManager (Poco::SharedPtr< Poco::TaskManager > taskManager)
void addTask (Poco::SharedPtr< TaskWaitObject > task)
void setThreadPool (Poco::SharedPtr< Poco::ThreadPool > threadPool)
void clearTaskQueue ()
void start ()
void stop ()
void join ()
bool isRunning ()
virtual void run ()
virtual ~ComponentManager ()

Protected Member Functions

Poco::SharedPtr< ComponentBasegetFreeComponent ()

Protected Attributes

bool exitFlag
std::vector< Poco::SharedPtr
< ComponentBase > > 
componentsList
Poco::Thread ownThread
Poco::SharedPtr
< Poco::TaskManager > 
_taskManager
Poco::FastMutex insertComponentMutex
Poco::FastMutex componentMutex
Poco::FastMutex incomeDataMutex
Poco::Condition conditionVar
std::queue< Poco::SharedPtr
< TaskWaitObject > > 
taskQueue
Poco::SharedPtr< Poco::ThreadPool > _threadPool

Detailed Description

Definition at line 21 of file ComponentManager.hpp.

Constructor & Destructor Documentation

HCE::component::ComponentManager::ComponentManager ( )
inline

Definition at line 37 of file ComponentManager.hpp.

virtual HCE::component::ComponentManager::~ComponentManager ( )
inlinevirtual

Definition at line 48 of file ComponentManager.hpp.

Member Function Documentation

void HCE::component::ComponentManager::addComponent ( Poco::SharedPtr< ComponentBase componentPtr)

Definition at line 38 of file ComponentManager.cpp.

void HCE::component::ComponentManager::addTask ( Poco::SharedPtr< TaskWaitObject task)

Definition at line 56 of file ComponentManager.cpp.

void HCE::component::ComponentManager::clearTaskQueue ( )

Definition at line 70 of file ComponentManager.cpp.

Poco::SharedPtr< ComponentBase > HCE::component::ComponentManager::getFreeComponent ( )
protected

Definition at line 16 of file ComponentManager.cpp.

Here is the caller graph for this function:

bool HCE::component::ComponentManager::isRunning ( )
inline

Definition at line 46 of file ComponentManager.hpp.

void HCE::component::ComponentManager::join ( )
inline

Definition at line 45 of file ComponentManager.hpp.

void HCE::component::ComponentManager::run ( )
virtual

Definition at line 99 of file ComponentManager.cpp.

Here is the call graph for this function:

void HCE::component::ComponentManager::setTaskManager ( Poco::SharedPtr< Poco::TaskManager >  taskManager)

Definition at line 48 of file ComponentManager.cpp.

void HCE::component::ComponentManager::setThreadPool ( Poco::SharedPtr< Poco::ThreadPool >  threadPool)
inline

Definition at line 41 of file ComponentManager.hpp.

void HCE::component::ComponentManager::start ( )

Definition at line 79 of file ComponentManager.cpp.

void HCE::component::ComponentManager::stop ( )

Definition at line 91 of file ComponentManager.cpp.

Member Data Documentation

Poco::SharedPtr<Poco::TaskManager> HCE::component::ComponentManager::_taskManager
protected

Definition at line 29 of file ComponentManager.hpp.

Poco::SharedPtr<Poco::ThreadPool> HCE::component::ComponentManager::_threadPool
protected

Definition at line 35 of file ComponentManager.hpp.

Poco::FastMutex HCE::component::ComponentManager::componentMutex
protected

Definition at line 31 of file ComponentManager.hpp.

std::vector<Poco::SharedPtr<ComponentBase> > HCE::component::ComponentManager::componentsList
protected

Definition at line 27 of file ComponentManager.hpp.

Poco::Condition HCE::component::ComponentManager::conditionVar
protected

Definition at line 33 of file ComponentManager.hpp.

bool HCE::component::ComponentManager::exitFlag
protected

Definition at line 26 of file ComponentManager.hpp.

Poco::FastMutex HCE::component::ComponentManager::incomeDataMutex
protected

Definition at line 32 of file ComponentManager.hpp.

Poco::FastMutex HCE::component::ComponentManager::insertComponentMutex
protected

Definition at line 30 of file ComponentManager.hpp.

Poco::Thread HCE::component::ComponentManager::ownThread
protected

Definition at line 28 of file ComponentManager.hpp.

std::queue<Poco::SharedPtr<TaskWaitObject> > HCE::component::ComponentManager::taskQueue
protected

Definition at line 34 of file ComponentManager.hpp.


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