COPASI API  4.40.278
CTableCell Class Reference

#include <CTableCell.h>

Public Member Functions

 CTableCell (const char &separator='\t')
 
 CTableCell (const CTableCell &src)
 
const std::string & getName () const
 
const char & getSeparator () const
 
const C_FLOAT64getValue () const
 
const bool & isEmpty () const
 
const bool & isValue () const
 
bool setSeparator (const char &separator)
 
 ~CTableCell ()
 

Private Attributes

bool mIsEmpty
 
bool mIsValue
 
std::string mName
 
char mSeparator
 
C_FLOAT64 mValue
 

Friends

std::istream & operator>> (std::istream &is, CTableCell &cell)
 

Constructor & Destructor Documentation

◆ CTableCell() [1/2]

CTableCell::CTableCell ( const char &  separator = '\t')

Default constructor

Parameters
constchar & separator (default: '\t')

◆ CTableCell() [2/2]

CTableCell::CTableCell ( const CTableCell src)

Copy constructor

Parameters
constCTableCell & src

◆ ~CTableCell()

CTableCell::~CTableCell ( )

Destructor

Member Function Documentation

◆ getName()

const std::string & CTableCell::getName ( ) const

Retrieve the name.

Returns
const std::string & name

References mName.

◆ getSeparator()

const char & CTableCell::getSeparator ( ) const

Retreive the separator

Returns
const char & separator

References mSeparator.

◆ getValue()

const C_FLOAT64 & CTableCell::getValue ( ) const

Retrieve the value.

Returns
const C_FLOAT64 & value

References mValue.

◆ isEmpty()

const bool & CTableCell::isEmpty ( ) const

Check whether a cell contains any data. A cell is considered empty when it only contains whitespace charaters.

References mIsEmpty.

◆ isValue()

const bool & CTableCell::isValue ( ) const

Check whether the cell contains a numeric value

Returns
bool isValue

References mIsValue.

◆ setSeparator()

bool CTableCell::setSeparator ( const char &  separator)

Set the separator

Parameters
constchar & separator
Returns
bool success

References mSeparator.

Friends And Related Function Documentation

◆ operator>>

std::istream& operator>> ( std::istream &  is,
CTableCell cell 
)
friend

Formated stream input operator

Parameters
CTableCell& cell
Returns
std::istream &

Member Data Documentation

◆ mIsEmpty

bool CTableCell::mIsEmpty
private

Referenced by isEmpty().

◆ mIsValue

bool CTableCell::mIsValue
private

Referenced by isValue().

◆ mName

std::string CTableCell::mName
private

Referenced by getName().

◆ mSeparator

char CTableCell::mSeparator
private

Referenced by getSeparator(), and setSeparator().

◆ mValue

C_FLOAT64 CTableCell::mValue
private

Referenced by getValue().


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