te::process::Process Class Reference

#include <Process.h>

Public Member Functions

void addConnector (te::process::ConnectorSharedPtr connectorPtr)
 Gets the task associated to the given id. More...
 
void addTask (te::process::TaskSharedPtr taskPtr)
 Adds a connector to the process. Process will be the holder of the given shared pointers. More...
 
void clear ()
 Checks if the process is valid. More...
 
te::process::ConnectorSharedPtr getConnector (const std::string &id) const
 Removed the task associated to the given id. More...
 
const std::vector< te::process::ConnectorSharedPtr > & getConnectors () const
 Runs the process synchronously. More...
 
te::process::TaskSharedPtr getTask (const std::string &id) const
 Gets the connector associated to the given id. More...
 
const std::vector< te::process::TaskSharedPtr > & getTasks () const
 Gets all connectors from the process. More...
 
bool isValid (te::process::ProcessListener *listener) const
 Adds a task to the process. Process will be the holder of the given shared pointers. More...
 
 Process ()
 Constructor. More...
 
void removeConnector (const std::string &id)
 Gets all taks from the process. More...
 
void removeTask (const std::string &id)
 Removes the connector associated to the given id. More...
 
void requestStop ()
 
bool run (te::process::ProcessListener *listener)
 Runs the process asynchronously. More...
 
void runAsync (te::process::ProcessListener *listener)
 Requests that the asynchronously execution be stopped. More...
 
virtual ~Process ()
 Virtual destructor. More...
 

Protected Member Functions

std::vector< te::process::TaskSharedPtrgetReadyToRunTasks () const
 < Gets all tasks that are ready to rund More...
 

Protected Attributes

std::thread * m_thread
 
std::vector< te::process::ConnectorSharedPtrm_vecConnectors
 
std::vector< te::process::TaskSharedPtrm_vecTasks
 

Detailed Description

Definition at line 51 of file Process.h.

Constructor & Destructor Documentation

◆ Process()

te::process::Process::Process ( )

Constructor.

◆ ~Process()

virtual te::process::Process::~Process ( )
virtual

Virtual destructor.

Clears the association

Member Function Documentation

◆ addConnector()

void te::process::Process::addConnector ( te::process::ConnectorSharedPtr  connectorPtr)

Gets the task associated to the given id.

◆ addTask()

void te::process::Process::addTask ( te::process::TaskSharedPtr  taskPtr)

Adds a connector to the process. Process will be the holder of the given shared pointers.

◆ clear()

void te::process::Process::clear ( )

Checks if the process is valid.

◆ getConnector()

te::process::ConnectorSharedPtr te::process::Process::getConnector ( const std::string &  id) const

Removed the task associated to the given id.

◆ getConnectors()

const std::vector<te::process::ConnectorSharedPtr>& te::process::Process::getConnectors ( ) const

Runs the process synchronously.

◆ getReadyToRunTasks()

std::vector<te::process::TaskSharedPtr> te::process::Process::getReadyToRunTasks ( ) const
protected

< Gets all tasks that are ready to rund

◆ getTask()

te::process::TaskSharedPtr te::process::Process::getTask ( const std::string &  id) const

Gets the connector associated to the given id.

◆ getTasks()

const std::vector<te::process::TaskSharedPtr>& te::process::Process::getTasks ( ) const

Gets all connectors from the process.

◆ isValid()

bool te::process::Process::isValid ( te::process::ProcessListener listener) const

Adds a task to the process. Process will be the holder of the given shared pointers.

◆ removeConnector()

void te::process::Process::removeConnector ( const std::string &  id)

Gets all taks from the process.

◆ removeTask()

void te::process::Process::removeTask ( const std::string &  id)

Removes the connector associated to the given id.

◆ requestStop()

void te::process::Process::requestStop ( )

◆ run()

bool te::process::Process::run ( te::process::ProcessListener listener)

Runs the process asynchronously.

◆ runAsync()

void te::process::Process::runAsync ( te::process::ProcessListener listener)

Requests that the asynchronously execution be stopped.

Member Data Documentation

◆ m_thread

std::thread* te::process::Process::m_thread
protected

Definition at line 108 of file Process.h.

◆ m_vecConnectors

std::vector<te::process::ConnectorSharedPtr> te::process::Process::m_vecConnectors
protected

Definition at line 110 of file Process.h.

◆ m_vecTasks

std::vector<te::process::TaskSharedPtr> te::process::Process::m_vecTasks
protected

Definition at line 109 of file Process.h.


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