ICP  1
Public Member Functions | Private Types | Private Attributes | List of all members
GenericTask< T > Class Template Reference

#include <icputils.h>

Inheritance diagram for GenericTask< T >:
Inheritance graph

Public Member Functions

 GenericTask (const std::string &name, Poco::SharedPtr< Poco::Event > finish_event, const func_t &func)
 
void runTask ()
 
void cancel ()
 

Private Types

typedef boost::function< T()> func_t
 

Private Attributes

Poco::SharedPtr< Poco::Event > m_finish_event
 
func_t m_func
 
- Private Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Additional Inherited Members

- Private Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
virtual std::string loggingPrefix () const
 
void setThisLoggerLevel (int level)
 
- Static Private Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 

Detailed Description

template<typename T>
class GenericTask< T >

Definition at line 523 of file icputils.h.

Member Typedef Documentation

template<typename T>
typedef boost::function<T()> GenericTask< T >::func_t
private

Definition at line 526 of file icputils.h.

Constructor & Destructor Documentation

template<typename T>
GenericTask< T >::GenericTask ( const std::string &  name,
Poco::SharedPtr< Poco::Event >  finish_event,
const func_t func 
)
inline

Definition at line 530 of file icputils.h.

Member Function Documentation

template<typename T>
void GenericTask< T >::cancel ( )
inline

Definition at line 549 of file icputils.h.

template<typename T>
void GenericTask< T >::runTask ( )
inline

Member Data Documentation

template<typename T>
Poco::SharedPtr<Poco::Event> GenericTask< T >::m_finish_event
private

Definition at line 525 of file icputils.h.

Referenced by GenericTask< T >::runTask().

template<typename T>
func_t GenericTask< T >::m_func
private

Definition at line 527 of file icputils.h.

Referenced by GenericTask< T >::runTask().


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