sptk2 logo
SPTK Home Page

sptk::idstring Class Reference
[Utility Classes]

String with ID Extended version of std::string that supports an integer string ID. More...

#include <CStrings.h>

List of all members.

Public Member Functions

 idstring ()
 Default constructor.
 idstring (const idstring &str)
 idstring (const std::string &str, int32_t id=0)
 idstring (const char *str, int32_t id=0)
idstringoperator= (const idstring &si)
 Assignment operator.
idstringoperator= (const char *str)
int32_t ident () const
 Returns string ID.
void ident (int32_t id)
 Sets string ID.

Public Attributes

int32_t m_id
 String ID.


Detailed Description

String with ID Extended version of std::string that supports an integer string ID.

Constructor & Destructor Documentation

sptk::idstring::idstring ( const idstring str  )  [inline]

Copy constructor

Parameters:
str const idstring&, source string

sptk::idstring::idstring ( const std::string &  str,
int32_t  id = 0 
) [inline]

Constructor

Parameters:
str const string&, source string
id in, optional string id

sptk::idstring::idstring ( const char *  str,
int32_t  id = 0 
) [inline]

Constructor

Parameters:
str const char *, source string
id in, optional string id


Member Function Documentation

idstring& sptk::idstring::operator= ( const char *  str  )  [inline]

Assignment operator

Parameters:
str const char *, source string


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

Mon Mar 5 11:56:07 2012: SPTK 3.5.7