COPASI API  4.40.278
CCommonName Class Reference

#include <CCommonName.h>

Inheritance diagram for CCommonName:
[legend]

Public Member Functions

 CCommonName ()
 
 CCommonName (const CCommonName &src)
 
 CCommonName (const char *name)
 
 CCommonName (const std::string &name)
 
std::string::size_type findNext (const std::string &toFind, const std::string::size_type &pos=0) const
 
std::string::size_type findPrevious (const std::string &toFind, const std::string::size_type &pos=std::string::npos) const
 
size_t getElementIndex (const size_t &pos=0) const
 
std::string getElementName (const size_t &pos, const bool &unescape=true) const
 
std::string getObjectName () const
 
std::string getObjectType () const
 
CCommonName getPrimary () const
 
CCommonName getRemainder () const
 
void split (CCommonName &parentCN, std::string &objectType, std::string &objectName) const
 
 ~CCommonName ()
 

Static Public Member Functions

static std::string compartmentNameFromCN (const CCommonName &cn)
 
static std::string construct (const CCommonName &parent, const std::string &objectType, const std::string &objectName)
 
static std::string escape (const std::string &name)
 
static std::string fromData (const CData &data)
 
static std::string nameFromCN (const CCommonName &cn)
 
static std::string unescape (const std::string &name)
 

Private Member Functions

void fixSpelling ()
 

Constructor & Destructor Documentation

◆ CCommonName() [1/4]

CCommonName::CCommonName ( )

Default Constructor

Referenced by getRemainder().

◆ CCommonName() [2/4]

CCommonName::CCommonName ( const CCommonName src)

Copy Constructor

Parameters
constCRegisteredCommonName & src

◆ ~CCommonName()

CCommonName::~CCommonName ( )

Destructor

◆ CCommonName() [3/4]

CCommonName::CCommonName ( const char *  name)

Constructor from base class

Parameters
constchar * name

References fixSpelling().

◆ CCommonName() [4/4]

CCommonName::CCommonName ( const std::string &  name)

Constructor from base class

Parameters
conststd::string & name

References fixSpelling().

Member Function Documentation

◆ compartmentNameFromCN()

std::string CCommonName::compartmentNameFromCN ( const CCommonName cn)
static

References split().

◆ construct()

std::string CCommonName::construct ( const CCommonName parent,
const std::string &  objectType,
const std::string &  objectName 
)
static

References escape(), and split().

Referenced by fromData().

◆ escape()

◆ findNext()

std::string::size_type CCommonName::findNext ( const std::string &  toFind,
const std::string::size_type &  pos = 0 
) const

◆ findPrevious()

std::string::size_type CCommonName::findPrevious ( const std::string &  toFind,
const std::string::size_type &  pos = std::string::npos 
) const

Referenced by split().

◆ fixSpelling()

void CCommonName::fixSpelling ( )
private

Referenced by CCommonName().

◆ fromData()

◆ getElementIndex()

size_t CCommonName::getElementIndex ( const size_t &  pos = 0) const

◆ getElementName()

std::string CCommonName::getElementName ( const size_t &  pos,
const bool &  unescape = true 
) const

◆ getObjectName()

◆ getObjectType()

◆ getPrimary()

◆ getRemainder()

◆ nameFromCN()

std::string CCommonName::nameFromCN ( const CCommonName cn)
static

◆ split()

void CCommonName::split ( CCommonName parentCN,
std::string &  objectType,
std::string &  objectName 
) const

◆ unescape()

std::string CCommonName::unescape ( const std::string &  name)
static

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