COPASI API
4.16.103
|
#include <COutputHandler.h>
Public Member Functions | |
virtual void | addInterface (COutputInterface *pInterface) |
virtual bool | compile (std::vector< CCopasiContainer * > listOfContainer, const CCopasiDataModel *pDataModel) |
COutputHandler () | |
COutputHandler (const COutputHandler &src) | |
virtual void | finish () |
std::set< COutputInterface * > | getInterfaces () const |
bool | isMaster () const |
virtual void | output (const Activity &activity) |
virtual void | removeInterface (COutputInterface *pInterface) |
virtual void | separate (const Activity &activity) |
void | setMaster (COutputHandler *pMaster) |
virtual | ~COutputHandler () |
![]() | |
virtual void | close () |
COutputInterface () | |
COutputInterface (const COutputInterface &src) | |
virtual const std::set< const CCopasiObject * > & | getObjects () const |
virtual | ~COutputInterface () |
Protected Member Functions | |
bool | compileRefresh (const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiDataModel *pDataModel) |
void | refresh () |
Protected Attributes | |
std::set< COutputInterface * > | mInterfaces |
std::vector< Refresh * > | mObjectRefreshes |
COutputHandler * | mpMaster |
![]() | |
std::set< const CCopasiObject * > | mObjects |
Additional Inherited Members | |
![]() | |
enum | Activity { BEFORE = 0x01, DURING = 0x02, AFTER = 0x04 } |
This is the lass which drives all output of COPASI.
Definition at line 112 of file COutputHandler.h.
COutputHandler::COutputHandler | ( | ) |
Default Constructor
Definition at line 26 of file COutputHandler.cpp.
COutputHandler::COutputHandler | ( | const COutputHandler & | src | ) |
Copy constructor
const | COutputInterface & src |
Definition at line 33 of file COutputHandler.cpp.
|
virtual |
|
virtual |
Add an interface
COutputInterface | * pInterface; |
Definition at line 140 of file COutputHandler.cpp.
References mInterfaces, and setMaster().
Referenced by CScanTask::initialize(), CTSSATask::initialize(), CTrajectoryTask::initialize(), CCrossSectionTask::initialize(), and CCopasiTask::initialize().
|
virtual |
compile the object list from name vector
std::vector< | CCopasiContainer * > listOfContainer |
const | CCopasiDataModel* pDataModel |
Reimplemented from COutputInterface.
Reimplemented in COutputHandlerPlot.
Definition at line 47 of file COutputHandler.cpp.
References compileRefresh(), mInterfaces, COutputInterface::mObjects, mpMaster, and setMaster().
Referenced by COutputHandlerPlot::compile(), CCopasiTask::initialize(), and CMoietiesTask::process().
|
protected |
Compile the object refresh list
const | std::vector< CCopasiContainer * > & listOfContainer |
Definition at line 174 of file COutputHandler.cpp.
References CCopasiObject::buildUpdateSequence(), CCopasiObject::getCN(), CCopasiDataModel::getModel(), CModel::getUptoDateObjects(), mObjectRefreshes, COutputInterface::mObjects, and CCopasiDataModel::ObjectFromName().
Referenced by compile().
|
virtual |
Finish the output
Reimplemented from COutputInterface.
Definition at line 105 of file COutputHandler.cpp.
References mInterfaces, and removeInterface().
Referenced by main(), and validate().
std::set< COutputInterface * > COutputHandler::getInterfaces | ( | ) | const |
Definition at line 42 of file COutputHandler.cpp.
References mInterfaces.
bool COutputHandler::isMaster | ( | ) | const |
Check whether the handler is a master
Definition at line 163 of file COutputHandler.cpp.
References mpMaster.
Perform an output event for the current activity
const | Activity & activity |
Reimplemented from COutputInterface.
Definition at line 80 of file COutputHandler.cpp.
References mInterfaces, mpMaster, and refresh().
Referenced by CCopasiTask::output().
|
protected |
Refresh all objects
Definition at line 166 of file COutputHandler.cpp.
References mObjectRefreshes.
Referenced by output().
|
virtual |
Remove an interface
COutputInterface | * pInterface; |
Reimplemented in COutputHandlerPlot.
Definition at line 150 of file COutputHandler.cpp.
References mInterfaces, and setMaster().
Referenced by finish(), and COutputHandlerPlot::removeInterface().
Introduce an additional separator into the output
const | Activity & activity |
Reimplemented from COutputInterface.
Definition at line 94 of file COutputHandler.cpp.
References mInterfaces.
Referenced by CCopasiTask::separate().
void COutputHandler::setMaster | ( | COutputHandler * | pMaster | ) |
Set whether the handler is the master handler
COutputHandler | * pMaster |
Definition at line 160 of file COutputHandler.cpp.
References mpMaster.
Referenced by addInterface(), compile(), and removeInterface().
|
protected |
A list of all active output interfaces.
Definition at line 202 of file COutputHandler.h.
Referenced by addInterface(), COutputHandlerPlot::compile(), compile(), finish(), getInterfaces(), output(), removeInterface(), and separate().
|
protected |
An ordered list of refresh methods needed by the master
Definition at line 213 of file COutputHandler.h.
Referenced by compileRefresh(), and refresh().
|
protected |
Points to the master handler. The master handler is responsible for the and object updates and all the output.
Definition at line 208 of file COutputHandler.h.
Referenced by compile(), isMaster(), output(), and setMaster().