BasicString Class Reference

#include <BasicString.h>

List of all members.

Public Member Functions

 BasicString (const char *s, size_type n)
 See std::string.
 BasicString (const char *s)
 See std::string.
 BasicString (std::string &s)
 See std::string.
 BasicString (std::string &s, size_type pos, size_type n=npos)
 See std::string.
 BasicString (size_type n, char c)
 See std::string.
 BasicString (const int x)
 BasicString (const unsigned x)
 BasicString (const long x)
 BasicString (const unsigned long x)
 BasicString (const double x)

Static Public Member Functions

static unsigned char parseUByte (const std::string s)
static char parseByte (const std::string s)
static unsigned short parseUShort (const std::string s)
static short parseShort (const std::string s)
static unsigned int parseUInteger (const std::string s)
static int parseInteger (const std::string s)
static double parseDouble (const std::string s)
static bool parseBool (const std::string s)
static std::string trim (const std::string s)
static std::string toUpper (const std::string s)
static std::string toLower (const std::string s)


Detailed Description

Used for convenient conversion of basic data types to std::string.

Definition at line 32 of file BasicString.h.


Constructor & Destructor Documentation

BasicString::BasicString ( const char *  s,
size_type  n 
) [inline]

See std::string.

Definition at line 36 of file BasicString.h.

BasicString::BasicString ( const char *  s  )  [inline]

See std::string.

Definition at line 39 of file BasicString.h.

BasicString::BasicString ( std::string &  s  )  [inline]

See std::string.

Definition at line 42 of file BasicString.h.

BasicString::BasicString ( std::string &  s,
size_type  pos,
size_type  n = npos 
) [inline]

See std::string.

Definition at line 45 of file BasicString.h.

BasicString::BasicString ( size_type  n,
char  c 
) [inline]

See std::string.

Definition at line 49 of file BasicString.h.

BasicString::BasicString ( const int  x  ) 

Convert an int to a character string.

Parameters:
x The int to convert.

Definition at line 34 of file BasicString.cpp.

BasicString::BasicString ( const unsigned  x  ) 

Convert an unsigned int to a string.

Parameters:
x The unsigned int to convert.

Definition at line 40 of file BasicString.cpp.

BasicString::BasicString ( const long  x  ) 

Convert a long to a string.

Parameters:
x The long to convert.

Definition at line 46 of file BasicString.cpp.

BasicString::BasicString ( const unsigned long  x  ) 

Convert an unsigned long to a string.

Parameters:
x The unsigned long to convert.

Definition at line 52 of file BasicString.cpp.

BasicString::BasicString ( const double  x  ) 

Convert a double to a string.

Parameters:
x The double to convert.

Definition at line 58 of file BasicString.cpp.


Member Function Documentation

unsigned char BasicString::parseUByte ( const std::string  s  )  [static]

Definition at line 64 of file BasicString.cpp.

References ASSERT_OR_THROW, and parseUInteger().

Referenced by CompuCell3D::ChemotaxisDictyEnergy::readXML(), and CompuCell3D::CellTypePlugin::readXML().

Here is the call graph for this function:

char BasicString::parseByte ( const std::string  s  )  [static]

Definition at line 71 of file BasicString.cpp.

References ASSERT_OR_THROW, and parseUInteger().

Here is the call graph for this function:

unsigned short BasicString::parseUShort ( const std::string  s  )  [static]

Definition at line 79 of file BasicString.cpp.

References ASSERT_OR_THROW, and parseUInteger().

Here is the call graph for this function:

short BasicString::parseShort ( const std::string  s  )  [static]

Definition at line 86 of file BasicString.cpp.

References ASSERT_OR_THROW, and parseUInteger().

Here is the call graph for this function:

unsigned int BasicString::parseUInteger ( const std::string  s  )  [static]

Definition at line 94 of file BasicString.cpp.

References ASSERT_OR_THROW.

Referenced by parseByte(), CompuCell3D::Simulator::parsePotts(), parseShort(), parseUByte(), parseUShort(), CompuCell3D::UniformFieldInitializer::readXML(), CompuCell3D::ReactionDiffusionSolverFE_SavHog::readXML(), CompuCell3D::ReactionDiffusionFile::readXML(), CompuCell3D::FlexibleDiffusionSolverFE::readXML(), CompuCell3D::FastDiffusionSolver2DFE::readXML(), CompuCell3D::DictyFieldInitializer::readXML(), CompuCell3D::DictyChemotaxisSteppable::readXML(), CompuCell3D::CellVelocity::readXML(), CompuCell3D::CellDiffusionDataOutput::readXML(), CompuCell3D::BoxWatcher::readXML(), CompuCell3D::BlobFieldInitializer::readXML(), CompuCell3D::Simulator::readXML(), CompuCell3D::EnergyFunctionCalculatorStatisticsParseData::readXML(), CompuCell3D::EnergyFunctionCalculatorStatistics::readXML(), CompuCell3D::SurfaceTrackerPlugin::readXML(), CompuCell3D::PlayerSettingsPlugin::readXML(), CompuCell3D::PDESolverCallerPlugin::readXML(), CompuCell3D::NeighborTrackerPlugin::readXML(), CompuCell3D::MitosisPlugin::readXML(), CompuCell3D::LengthConstraintEnergy::readXML(), CompuCell3D::GrowthPlugin::readXML(), CompuCell3D::ContactMultiCadEnergy::readXML(), CompuCell3D::ContactLocalProductEnergy::readXML(), CompuCell3D::ContactLocalFlexEnergy::readXML(), CompuCell3D::ContactEnergy::readXML(), CompuCell3D::ContactCompartmentEnergy::readXML(), CompuCell3D::CellVelocityPlugin::readXML(), CompuCell3D::Point3D::readXML(), CompuCell3D::ClassRegistry::readXML(), and CompuCell3D::SurfaceEnergy::readXML().

int BasicString::parseInteger ( const std::string  s  )  [static]

Definition at line 103 of file BasicString.cpp.

References ASSERT_OR_THROW.

Referenced by CompuCell3D::GrowthPlugin::readXML().

double BasicString::parseDouble ( const std::string  s  )  [static]

Definition at line 112 of file BasicString.cpp.

References ASSERT_OR_THROW.

Referenced by CompuCell3D::Simulator::parsePotts(), CompuCell3D::ReactionDiffusionSolverFE_SavHog::readXML(), CompuCell3D::SecretionData::readXML(), CompuCell3D::DiffusionData::readXML(), CompuCell3D::DictyFieldInitializer::readXML(), CompuCell3D::DictyChemotaxisSteppable::readXML(), CompuCell3D::VolumeFlexEnergy::readXML(), CompuCell3D::ViscosityEnergy::readXML(), CompuCell3D::SurfaceTrackerPlugin::readXML(), CompuCell3D::SurfaceLocalFlexEnergy::readXML(), CompuCell3D::SurfaceFlexEnergy::readXML(), CompuCell3D::StretchnessEnergy::readXML(), CompuCell3D::SimpleArrayPlugin::readXML(), CompuCell3D::RearrangementEnergy::readXML(), CompuCell3D::PlayerSettingsPlugin::readXML(), CompuCell3D::PlasticityEnergy::readXML(), CompuCell3D::LengthConstraintEnergy::readXML(), CompuCell3D::GrowthPlugin::readXML(), CompuCell3D::ExternalPotentialEnergy::readXML(), CompuCell3D::ContactMultiCadEnergy::readXML(), CompuCell3D::ContactLocalProductEnergy::readXML(), CompuCell3D::ContactLocalFlexEnergy::readXML(), CompuCell3D::ContactFlexEnergy::readXML(), CompuCell3D::ContactEnergy::readXML(), CompuCell3D::ConnectivityEnergy::readXML(), CompuCell3D::ContactCompartmentEnergy::readXML(), CompuCell3D::ChickTypePlugin::readXML(), CompuCell3D::ChickGrowthTypePlugin::readXML(), CompuCell3D::ChemotaxisDictyEnergy::readXML(), CompuCell3D::ChemotaxisEnergy::readXML(), CompuCell3D::CellOrientationEnergy::readXML(), CompuCell3D::VolumeEnergy::readXML(), and CompuCell3D::SurfaceEnergy::readXML().

bool BasicString::parseBool ( const std::string  s  )  [static]

Definition at line 120 of file BasicString.cpp.

References THROW, toLower(), and trim().

Referenced by CompuCell3D::PlayerSettingsPlugin::readXML().

Here is the call graph for this function:

static std::string BasicString::trim ( const std::string  s  )  [static]

Referenced by parseBool().

static std::string BasicString::toUpper ( const std::string  s  )  [static]

Referenced by CompuCell3D::SimpleArrayPlugin::readXML().

static std::string BasicString::toLower ( const std::string  s  )  [static]

Referenced by parseBool().


The documentation for this class was generated from the following files:
Generated on Thu Feb 21 14:38:21 2008 for CompuCell3D by  doxygen 1.5.3