COPASI API  4.40.278
CDataString Class Reference

#include <CDataString.h>

Inheritance diagram for CDataString:

Public Member Functions

 CDataString (const CDataString &src, const CDataContainer *pParent)
 CDataString (const std::string &name="", const CDataContainer *pParent=NO_PARENT, const std::string &type="String", const CFlags< Flag > &flag=CFlags< Flag >::None)
virtual std::string getObjectDisplayName () const
const std::string & getStaticString () const
CDataStringoperator= (const std::string &rhs)
virtual void print (std::ostream *ostream) const
 ~CDataString ()
- Public Member Functions inherited from CDataObject
void addIssue (const CIssue &issue)
void addReference (const CDataContainer *pReference)
virtual bool applyData (const CData &data, CUndoData::CChangeSet &changes) override
virtual void calculateValue () override
 CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL)
virtual void createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const override
virtual void destruct () override
virtual CCommonName getCN () const override
virtual const CDataObjectgetDataObject () const override
virtual const std::string & getKey () const
virtual const CObjectInterfacegetObject (const CCommonName &cn) const override
CDataContainergetObjectAncestor (const std::string &type) const
CDataModelgetObjectDataModel () const
const CObjectInterfacegetObjectFromCN (const CCommonName &cn) const
const std::string & getObjectName () const
CDataContainergetObjectParent () const
const std::string & getObjectType () const
virtual const CObjectInterface::ObjectSetgetPrerequisites () const override
virtual const std::string getUnits () const
virtual const CValiditygetValidity () const override
virtual const CDataObjectgetValueObject () 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
void removeIssue (const CIssue &issue)
void removeReference (const CDataContainer *pReference)
bool setObjectName (const std::string &name)
virtual bool setObjectParent (const CDataContainer *pParent)
virtual CData toData () const override
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 CUndoObjectInterfaceinsert (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 ()

Protected Member Functions

 CDataString (const CDataString &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 Attributes

std::string mStaticString

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
- Static Public Member Functions inherited from CDataObject
static CDataObjectfromData (const CData &data, CUndoObjectInterface *pParent)
static void sanitizeObjectName (std::string &name)
- Static Public Member Functions inherited from CObjectInterface
static const CDataObjectDataObject (const CObjectInterface *pInterface)
static CObjectInterfaceGetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName)
- Static Public Member Functions inherited from CUndoObjectInterface
template<class CType >
static CType * fromData (const CData &, CUndoObjectInterface *)
- Protected Attributes inherited from CDataObject
ObjectSet mPrerequisits
std::set< CDataContainer * > mReferences
- Protected Attributes inherited from CObjectInterface
CValidity mValidity

Detailed Description

Class CCopasiStaticString

This class is the class for storing Copasi Static String Names.

Copyright Liang Xu 2002

Constructor & Destructor Documentation

◆ CDataString() [1/3]

CDataString::CDataString ( const CDataString src)

◆ CDataString() [2/3]

CDataString::CDataString ( const std::string &  name = "",
const CDataContainer pParent = NO_PARENT,
const std::string &  type = "String",
const CFlags< Flag > &  flag = CFlagsFlag >::None 

◆ CDataString() [3/3]

CDataString::CDataString ( const CDataString src,
const CDataContainer pParent 

◆ ~CDataString()

CDataString::~CDataString ( )

Member Function Documentation

◆ getObjectDisplayName()

std::string CDataString::getObjectDisplayName ( ) const

Retrieve the display name of the object

boolregular (default: true)
boolrichtext (default: false)
std::string objectDisplayName

Reimplemented from CDataObject.

Reimplemented in CCopasiReportSeparator.

References mStaticString.

◆ getStaticString()

const std::string & CDataString::getStaticString ( ) const

◆ operator=()

CDataString & CDataString::operator= ( const std::string &  rhs)

◆ print()

void CDataString::print ( std::ostream *  ostream) const

This is the output method for any object. The default implementation provided with CDataObject uses the ostream operator<< of the object to print the object.To override this default behavior one needs to reimplement the virtual print function.

std::ostream* ostream

Reimplemented from CDataObject.

References mStaticString.

Member Data Documentation

◆ mStaticString

std::string CDataString::mStaticString

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