#include <CProcessReport.h>
|
size_t | addItem (const std::string &name, const C_FLOAT64 &value, const C_FLOAT64 *pEndValue=NULL) |
|
size_t | addItem (const std::string &name, const C_INT32 &value, const C_INT32 *pEndValue=NULL) |
|
virtual size_t | addItem (const std::string &name, const CCopasiParameter::Type &type, const void *pValue, const void *pEndValue=NULL) |
|
size_t | addItem (const std::string &name, const std::string &value, const std::string *pEndValue=NULL) |
|
size_t | addItem (const std::string &name, const unsigned C_INT32 &value, const unsigned C_INT32 *pEndValue=NULL) |
|
| CProcessReport (const unsigned int &maxTime=0) |
|
virtual bool | finish () |
|
virtual bool | finishItem (const size_t &handle) |
|
const bool & | getIgnoreStop () const |
|
virtual bool | isValidHandle (const size_t handle) const |
|
virtual bool | proceed () |
|
virtual bool | progress () |
|
virtual bool | progressItem (const size_t &handle) |
|
virtual bool | reset () |
|
virtual bool | resetItem (const size_t &handle) |
|
void | setIgnoreStop (const bool &ignoreStop=true) |
|
virtual bool | setName (const std::string &name) |
|
virtual | ~CProcessReport () |
|
◆ ProccessingInstruction
Enumerator |
---|
Continue | |
Pause | |
Stop | |
Kill | |
◆ CProcessReport()
CProcessReport::CProcessReport |
( |
const unsigned int & |
maxTime = 0 | ) |
|
◆ ~CProcessReport()
CProcessReport::~CProcessReport |
( |
| ) |
|
|
virtual |
◆ addItem() [1/5]
size_t CProcessReport::addItem |
( |
const std::string & |
name, |
|
|
const C_FLOAT64 & |
value, |
|
|
const C_FLOAT64 * |
pEndValue = NULL |
|
) |
| |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
- Parameters
-
const | std::string & name |
const | C_FLOAT64 & value |
const | C_FLOAT64 * pEndValue = NULL |
- Returns
- size_t handle
References addItem(), and CCopasiParameter::DOUBLE.
◆ addItem() [2/5]
size_t CProcessReport::addItem |
( |
const std::string & |
name, |
|
|
const C_INT32 & |
value, |
|
|
const C_INT32 * |
pEndValue = NULL |
|
) |
| |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
- Parameters
-
const | std::string & name |
const | C_INT32 & value |
const | C_INT32 * pEndValue = NULL |
- Returns
- size_t handle
References addItem(), and CCopasiParameter::INT.
◆ addItem() [3/5]
size_t CProcessReport::addItem |
( |
const std::string & |
name, |
|
|
const CCopasiParameter::Type & |
type, |
|
|
const void * |
pValue, |
|
|
const void * |
pEndValue = NULL |
|
) |
| |
|
virtual |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
- Parameters
-
- Returns
- size_t handle
References mProcessReportItemList, CVector< CType >::resize(), and CVectorCore< CType >::size().
Referenced by addItem(), CProcessReportLevel::addItem(), CModel::buildStoi(), CModel::compile(), CSBMLExporter::createProgressStepOrStop(), SBMLImporter::createProgressStepOrStop(), CSBMLExporter::exportModelToString(), LUfactor(), SBMLImporter::parseSBML(), SEDMLImporter::parseSEDML(), and CMIRIAMResources::updateMIRIAMResourcesFromFile().
◆ addItem() [4/5]
size_t CProcessReport::addItem |
( |
const std::string & |
name, |
|
|
const std::string & |
value, |
|
|
const std::string * |
pEndValue = NULL |
|
) |
| |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
- Parameters
-
const | std::string & name |
const | std::string & value |
const | std::string * pEndValue = NULL |
- Returns
- size_t handle
References addItem(), and CCopasiParameter::STRING.
◆ addItem() [5/5]
size_t CProcessReport::addItem |
( |
const std::string & |
name, |
|
|
const unsigned C_INT32 & |
value, |
|
|
const unsigned C_INT32 * |
pEndValue = NULL |
|
) |
| |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
- Parameters
-
const | std::string & name |
const | unsigned C_INT32 & value |
const | unsigned C_INT32 * pEndValue = NULL |
- Returns
- size_t handle
References addItem(), and CCopasiParameter::UINT.
◆ finish()
bool CProcessReport::finish |
( |
| ) |
|
|
virtual |
◆ finishItem()
bool CProcessReport::finishItem |
( |
const size_t & |
handle | ) |
|
|
virtual |
Indicate that item handle is finished reporting. The handle of that item is no longer valid after the call. If the return value is false the calling process must halt execution and return.
- Parameters
-
const | size_t & handle |
bool | continue |
References isValidHandle(), mProcessReportItemList, and pdelete.
Referenced by CModel::buildStoi(), CModel::compile(), CSBMLExporter::createProgressStepOrStop(), SBMLImporter::createProgressStepOrStop(), finish(), CSBMLExporter::finishCurrentStep(), SBMLImporter::finishCurrentStep(), CSBMLExporter::finishExport(), SBMLImporter::finishImport(), CProcessReportLevel::finishItem(), LUfactor(), SEDMLImporter::parseSEDML(), and CMIRIAMResources::updateMIRIAMResourcesFromFile().
◆ getIgnoreStop()
const bool & CProcessReport::getIgnoreStop |
( |
| ) |
const |
Retrieve whether to ignore stop when determining to proceed.
- Returns
- const bool & ignoreStop
References mIgnoreStop.
◆ isValidHandle()
bool CProcessReport::isValidHandle |
( |
const size_t |
handle | ) |
const |
|
virtual |
◆ proceed()
bool CProcessReport::proceed |
( |
| ) |
|
|
virtual |
◆ progress()
bool CProcessReport::progress |
( |
| ) |
|
|
virtual |
◆ progressItem()
bool CProcessReport::progressItem |
( |
const size_t & |
handle | ) |
|
|
virtual |
Report process on item handle. If the return value is false the calling process must halt execution and return.
- Parameters
-
const | size_t & handle |
bool | continue |
References isValidHandle(), and proceed().
Referenced by CModel::buildStoi(), CModel::compile(), CSBMLExporter::createProgressStepOrStop(), SBMLImporter::createProgressStepOrStop(), LUfactor(), progress(), CProcessReportLevel::progressItem(), CSBMLExporter::reportCurrentProgressOrStop(), SBMLImporter::reportCurrentProgressOrStop(), and CMIRIAMResources::updateMIRIAMResourcesFromFile().
◆ reset()
bool CProcessReport::reset |
( |
| ) |
|
|
virtual |
Reset all item handle. This means that the values of the items have changed but not as part of a continuous process. If you run multiple processes call reset between them. If the return value is false the calling process must halt execution and return.
- Parameters
-
References mProcessReportItemList, resetItem(), and CVectorCore< CType >::size().
◆ resetItem()
bool CProcessReport::resetItem |
( |
const size_t & |
handle | ) |
|
|
virtual |
Reset item handle. This means that the value of the item has changed but not as part of a continuous process. If you run multiple processes call reset between them. If the return value is false the calling process must halt execution and return.
- Parameters
-
const | size_t & handle |
bool | continue |
References isValidHandle(), and proceed().
Referenced by reset(), and CProcessReportLevel::resetItem().
◆ setIgnoreStop()
void CProcessReport::setIgnoreStop |
( |
const bool & |
ignoreStop = true | ) |
|
◆ setName()
bool CProcessReport::setName |
( |
const std::string & |
name | ) |
|
|
virtual |
◆ mIgnoreStop
bool CProcessReport::mIgnoreStop |
|
protected |
◆ mName
std::string CProcessReport::mName |
|
protected |
The name of the process.
Referenced by setName().
◆ mpEndTime
◆ mProccessingInstruction
The current processing instructions
Referenced by proceed().
◆ mProcessReportItemList
The documentation for this class was generated from the following files: