|
COPASI API
4.40.278
|
#include <CReportDefinition.h>
Public Member Functions | |
| virtual bool | applyData (const CData &data, CUndoData::CChangeSet &changes) |
| void | cleanup () |
| virtual void | createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const |
| CReportDefinition (const CReportDefinition &src, const CDataContainer *pParent) | |
| CReportDefinition (const std::string &name="NoName", const CDataContainer *pParent=NO_PARENT) | |
| std::vector< CRegisteredCommonName > * | getBodyAddr () |
| const std::vector< CRegisteredCommonName > * | getBodyAddr () const |
| const std::string & | getComment () const |
| std::vector< CRegisteredCommonName > * | getFooterAddr () |
| const std::vector< CRegisteredCommonName > * | getFooterAddr () const |
| std::vector< CRegisteredCommonName > * | getHeaderAddr () |
| const std::vector< CRegisteredCommonName > * | getHeaderAddr () const |
| virtual const std::string & | getKey () const |
| const unsigned C_INT32 & | getPrecision () const |
| const CCopasiReportSeparator & | getSeparator () const |
| std::vector< CRegisteredCommonName > * | getTableAddr () |
| const std::vector< CRegisteredCommonName > * | getTableAddr () const |
| const CTaskEnum::Task & | getTaskType () const |
| bool | getTitle () const |
| bool | isTable () const |
| bool | preCompileTable (const CObjectInterface::ContainerList &listOfContainer) |
| void | setComment (const std::string &comment) |
| void | setIsTable (bool table) |
| void | setPrecision (const unsigned C_INT32 &precision) |
| void | setSeparator (const std::string &separator) |
| bool | setTaskType (const CTaskEnum::Task &taskType) |
| void | setTitle (bool title) |
| virtual CData | toData () const |
| ~CReportDefinition () | |
Public Member Functions inherited from CDataObject | |
| void | addIssue (const CIssue &issue) |
| void | addReference (const CDataContainer *pReference) |
| virtual void | calculateValue () override |
| CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL) | |
| virtual void | destruct () override |
| virtual CCommonName | getCN () const override |
| virtual const CDataObject * | getDataObject () const override |
| virtual const CObjectInterface * | getObject (const CCommonName &cn) const override |
| CDataContainer * | getObjectAncestor (const std::string &type) const |
| CDataModel * | getObjectDataModel () const |
| virtual std::string | getObjectDisplayName () const override |
| const CObjectInterface * | getObjectFromCN (const CCommonName &cn) const |
| const std::string & | getObjectName () const |
| CDataContainer * | getObjectParent () const |
| const std::string & | getObjectType () const |
| virtual const CObjectInterface::ObjectSet & | getPrerequisites () const override |
| virtual const std::string | getUnits () const |
| virtual const CValidity & | getValidity () const override |
| virtual const CDataObject * | getValueObject () const |
| virtual void * | getValuePointer () const override |
| bool | hasFlag (const Flag &flag) const |
| virtual bool | isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const override |
| bool | prerequisitsContains (const DataObjectSet &objects) const |
| virtual void | print (std::ostream *ostream) const override |
| void | removeIssue (const CIssue &issue) |
| void | removeReference (const CDataContainer *pReference) |
| bool | setObjectName (const std::string &name) |
| virtual bool | setObjectParent (const CDataContainer *pParent) |
| void | validityChanged (const CValidity &changedValidity) override |
| void | validityRemoved (const CValidity &changedValidity) |
| virtual | ~CDataObject () |
Public Member Functions inherited from CObjectInterface | |
| CObjectInterface () | |
| CObjectInterface (const CObjectInterface &src) | |
| virtual | ~CObjectInterface () |
Public Member Functions inherited from CUndoObjectInterface | |
| CUndoObjectInterface () | |
| CUndoObjectInterface (const CUndoObjectInterface &src) | |
| bool | generateUuid () |
| const xg::Guid & | getUuid () const |
| virtual CUndoObjectInterface * | insert (const CData &data) |
| bool | setUuid (const std::string &uuid) |
| bool | setUuid (const xg::Guid &uuid) |
| virtual void | updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject) |
| virtual | ~CUndoObjectInterface () |
Static Public Member Functions | |
| static CReportDefinition * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CDataObject | |
| static CDataObject * | fromData (const CData &data, CUndoObjectInterface *pParent) |
| static void | sanitizeObjectName (std::string &name) |
Static Public Member Functions inherited from CObjectInterface | |
| static const CDataObject * | DataObject (const CObjectInterface *pInterface) |
| static CObjectInterface * | GetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName) |
Static Public Member Functions inherited from CUndoObjectInterface | |
| template<class CType > | |
| static CType * | fromData (const CData &, CUndoObjectInterface *) |
Protected Member Functions | |
| CReportDefinition (const CReportDefinition &src) | |
Protected Member Functions inherited from CDataObject | |
| CDataObject () | |
| CDataObject (const std::string &name, const CDataContainer *pParent=static_cast< CDataContainer * >((void *) 0), const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None) | |
Private Member Functions | |
| void | addTableElement (const CDataObject *pObject) |
Private Attributes | |
| std::vector< CRegisteredCommonName > | mBodyVector |
| bool | mbTitle |
| std::string | mComment |
| std::vector< CRegisteredCommonName > | mFooterVector |
| std::vector< CRegisteredCommonName > | mHeaderVector |
| std::string | mKey |
| unsigned C_INT32 | mPrecision |
| CCopasiReportSeparator | mSeparator |
| bool | mTable |
| std::vector< CRegisteredCommonName > | mTableVector |
| CTaskEnum::Task | mTaskType |
Additional Inherited Members | |
Public Types inherited from CDataObject | |
| typedef std::set< const CDataObject * > | DataObjectSet |
| enum | Flag { Container , Vector , Matrix , NameVector , Reference , ValueBool , ValueInt , ValueInt64 , ValueDbl , NonUniqueName , StaticString , ValueString , Separator , DisplayName , ModelEntity , Array , DataModel , Root , Gui , __SIZE } |
Public Types inherited from CObjectInterface | |
| typedef std::vector< const CDataContainer * > | ContainerList |
| typedef std::set< const CObjectInterface * > | ObjectSet |
Protected Attributes inherited from CDataObject | |
| ObjectSet | mPrerequisits |
| std::set< CDataContainer * > | mReferences |
Protected Attributes inherited from CObjectInterface | |
| CValidity | mValidity |
|
protected |
Referenced by fromData().
| CReportDefinition::CReportDefinition | ( | const std::string & | name = "NoName", |
| const CDataContainer * | pParent = NO_PARENT |
||
| ) |
Default constructor.
| CReportDefinition::CReportDefinition | ( | const CReportDefinition & | src, |
| const CDataContainer * | pParent | ||
| ) |
Copy constructor.
| CReportDefinition::~CReportDefinition | ( | ) |
Destructor.
References cleanup().
|
private |
This adds header and body entries for one table element (including separator if necessary)
| const | CDataObject * pObject |
References CDataObject::getCN(), CCommonName::getObjectName(), CDataObject::getObjectName(), CDataObject::getObjectParent(), CDataObject::getObjectType(), mBodyVector, mbTitle, mHeaderVector, and mSeparator.
Referenced by preCompileTable().
|
virtual |
Apply the provided data to the object
| const | CData & data |
Reimplemented from CDataObject.
References CDataObject::applyData(), CData::getProperty(), CData::isSetProperty(), mbTitle, mComment, mPrecision, mSeparator, mTable, mTaskType, CData::NOTES, CData::REPORT_IS_TABLE, CData::REPORT_PRECISION, CData::REPORT_SEPARATOR, CData::REPORT_SHOW_TITLE, CData::TASK_TYPE, CTaskEnum::TaskName, CTaskEnum::timeCourse, CDataValue::toBool(), CEnumAnnotation< Type, Enum >::toEnum(), CDataValue::toString(), and CDataValue::toUint().
| void CReportDefinition::cleanup | ( | ) |
cleanup
References CRootContainer::getKeyFactory(), mBodyVector, mFooterVector, mHeaderVector, mKey, mTableVector, and CKeyFactory::remove().
Referenced by ~CReportDefinition().
|
virtual |
Create the undo data which represents the changes recording the differences between the provided oldData and the current data.
| CUndoData | & undoData |
| const | CUndoData::Type & type |
| const | CData & oldData (default: empty data) |
| const | CCore::Framework & framework (default: CCore::Framework::ParticleNumbers) |
Reimplemented from CDataObject.
References CUndoData::addProperty(), CUndoData::CHANGE, CDataObject::createUndoData(), CData::getProperty(), CDataString::getStaticString(), mbTitle, mComment, mPrecision, mSeparator, mTable, mTaskType, CData::NOTES, CData::REPORT_IS_TABLE, CData::REPORT_PRECISION, CData::REPORT_SEPARATOR, CData::REPORT_SHOW_TITLE, CData::TASK_TYPE, and CTaskEnum::TaskName.
|
static |
Static method to create a CDataObject based on the provided data
| const | CData & data |
CReportDefinition class. This class describes the Report Definition
Created for COPASI by Mudita Singhal
References CReportDefinition(), CData::getProperty(), NO_PARENT, CData::OBJECT_NAME, and CDataValue::toString().
| std::vector< CRegisteredCommonName > * CReportDefinition::getBodyAddr | ( | ) |
gets the body in the report tag
References mBodyVector.
Referenced by CDataModel::addReport(), CReport::compile(), CSEDMLExporter::exportReport(), SEDMLImporter::importReport(), ReportSectionHandler::processStart(), and CCopasiXML::saveReportList().
| const std::vector< CRegisteredCommonName > * CReportDefinition::getBodyAddr | ( | ) | const |
gets the body in the report tag
References mBodyVector.
| const std::string & CReportDefinition::getComment | ( | ) | const |
Returns the comments in the report tag
References mComment.
Referenced by CCopasiXML::saveReportList().
| std::vector< CRegisteredCommonName > * CReportDefinition::getFooterAddr | ( | ) |
gets the footer in the report tag
References mFooterVector.
Referenced by CDataModel::addReport(), CReport::compile(), ReportSectionHandler::processStart(), and CCopasiXML::saveReportList().
| const std::vector< CRegisteredCommonName > * CReportDefinition::getFooterAddr | ( | ) | const |
gets the footer in the report tag
References mFooterVector.
| std::vector< CRegisteredCommonName > * CReportDefinition::getHeaderAddr | ( | ) |
gets the header in the report tag
References mHeaderVector.
Referenced by CDataModel::addReport(), CReport::compile(), CSEDMLExporter::exportReport(), SEDMLImporter::importReport(), ReportSectionHandler::processStart(), and CCopasiXML::saveReportList().
| const std::vector< CRegisteredCommonName > * CReportDefinition::getHeaderAddr | ( | ) | const |
gets the header in the report tag
References mHeaderVector.
|
virtual |
Reimplemented from CDataObject.
References mKey.
Referenced by CCopasiXML::saveReportList(), and CCopasiXML::saveTaskList().
| const unsigned C_INT32 & CReportDefinition::getPrecision | ( | ) | const |
Retrieve the precsion for floating point numbers;
References mPrecision.
Referenced by CReport::open(), and CCopasiXML::saveReportList().
| const CCopasiReportSeparator & CReportDefinition::getSeparator | ( | ) | const |
References mSeparator.
Referenced by CSEDMLExporter::exportReport(), SEDMLImporter::importReport(), and CCopasiXML::saveReportList().
| std::vector< CRegisteredCommonName > * CReportDefinition::getTableAddr | ( | ) |
gets the footer in the report tag
References mTableVector.
Referenced by COutputAssistant::createTable(), CSEDMLExporter::exportReport(), TableHandler::processEnd(), and CCopasiXML::saveReportList().
| const std::vector< CRegisteredCommonName > * CReportDefinition::getTableAddr | ( | ) | const |
gets the footer in the report tag
References mTableVector.
| const CTaskEnum::Task & CReportDefinition::getTaskType | ( | ) | const |
References mTaskType.
Referenced by CCopasiXML::saveReportList().
| bool CReportDefinition::getTitle | ( | ) | const |
References mbTitle.
Referenced by CCopasiXML::saveReportList().
| bool CReportDefinition::isTable | ( | ) | const |
References mTable.
Referenced by CReport::compile(), CSEDMLExporter::exportReport(), and CCopasiXML::saveReportList().
| bool CReportDefinition::preCompileTable | ( | const CObjectInterface::ContainerList & | listOfContainer | ) |
Convert the table list into a header and body list.
| const | CObjectInterface::ContainerList & listOfContainer (default: CDataContainer::EmptyList) |
References addTableElement(), CObjectInterface::DataObject(), CObjectInterface::GetObjectFromCN(), mBodyVector, MCCopasiTask, mFooterVector, mHeaderVector, mTableVector, and CCopasiMessage::WARNING.
| void CReportDefinition::setComment | ( | const std::string & | comment | ) |
sets the comments in the report tag
References mComment.
Referenced by CDataModel::addReport(), CReportDefinitionVector::createReportDefinition(), SEDMLImporter::importReport(), and ReportDefinitionHandler::processEnd().
| void CReportDefinition::setIsTable | ( | bool | table | ) |
References mTable.
Referenced by CDataModel::addReport(), COutputAssistant::createTable(), SEDMLImporter::importReport(), and ReportDefinitionHandler::processStart().
| void CReportDefinition::setPrecision | ( | const unsigned C_INT32 & | precision | ) |
Set the precsion for floating point numbers;
| const | unsigned C_INT32 & precision |
References mPrecision.
Referenced by ReportDefinitionHandler::processStart().
| void CReportDefinition::setSeparator | ( | const std::string & | separator | ) |
References mSeparator.
Referenced by CDataModel::addReport(), COutputAssistant::createTable(), SEDMLImporter::importReport(), and ReportDefinitionHandler::processStart().
| bool CReportDefinition::setTaskType | ( | const CTaskEnum::Task & | taskType | ) |
References mTaskType.
Referenced by CDataModel::addReport(), COutputAssistant::createTable(), and ReportDefinitionHandler::processStart().
| void CReportDefinition::setTitle | ( | bool | title | ) |
References mbTitle.
Referenced by CDataModel::addReport(), and TableHandler::processStart().
|
virtual |
Retrieve the data describing the object
Reimplemented from CDataObject.
References CData::addProperty(), CDataString::getStaticString(), mbTitle, mComment, mPrecision, mSeparator, mTable, mTaskType, CData::NOTES, CData::REPORT_IS_TABLE, CData::REPORT_PRECISION, CData::REPORT_SEPARATOR, CData::REPORT_SHOW_TITLE, CData::TASK_TYPE, CTaskEnum::TaskName, and CDataObject::toData().
|
private |
Referenced by addTableElement(), cleanup(), getBodyAddr(), and preCompileTable().
|
private |
Referenced by addTableElement(), applyData(), createUndoData(), getTitle(), setTitle(), and toData().
|
private |
Referenced by applyData(), createUndoData(), getComment(), setComment(), and toData().
|
private |
Referenced by cleanup(), getFooterAddr(), and preCompileTable().
|
private |
Referenced by addTableElement(), cleanup(), getHeaderAddr(), and preCompileTable().
|
private |
Referenced by applyData(), createUndoData(), getPrecision(), setPrecision(), and toData().
|
private |
Referenced by addTableElement(), applyData(), createUndoData(), getSeparator(), setSeparator(), and toData().
|
private |
Referenced by applyData(), createUndoData(), isTable(), setIsTable(), and toData().
|
private |
Referenced by cleanup(), getTableAddr(), and preCompileTable().
|
private |
Referenced by applyData(), createUndoData(), getTaskType(), setTaskType(), and toData().