libFAUDES

Sections

Index

faudes::String Class Reference

#include <rtitypes.h>

Inherits faudes::Type.

List of all members.


Detailed Description

Elementary type.

Public Member Functions

 String (void)
 Constructor.
 String (std::string val)
 Constructor provided with initial value.
 ~String (void)
 Destructor.
virtual TypeNew (void) const
 Construct on heap.
void CValue (std::string val)
 Set value.
std::string CValue (void) const
 Get value.
std::string * CReference (void)
 Get reference.
Stringoperator= (const String &costr)
 Assignment operator.
Stringoperator= (const std::string &cstr)
 operator std::string () const
 Conversion to std::string.
void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Write data to Tokenwriter.
void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 Read data from TokenReader.

Protected Attributes

std::string mCString
 Variable to store current value.

Constructor & Destructor Documentation

faudes::String::String ( void   ) 

Constructor.

faudes::String::String ( std::string  val  ) 

Constructor provided with initial value.

Parameters:
val Initial value.

faudes::String::~String ( void   )  [inline]

Destructor.


Member Function Documentation

Type * faudes::String::New ( void   )  const [virtual]

Construct on heap.

Create new String instance and return pointer.

NOTE: Calling function takes control.

Returns:
Pointer to String instance.

Reimplemented from faudes::Type.

void faudes::String::CValue ( std::string  val  ) 

Set value.

Parameters:
val Value to be set. (std::string)

std::string faudes::String::CValue ( void   )  const

Get value.

Returns:
Value of object. (std::string)

std::string * faudes::String::CReference ( void   ) 

Get reference.

Returns:
Reference to c value.

String& faudes::String::operator= ( const String costr  )  [inline]

Assignment operator.

String& faudes::String::operator= ( const std::string &  cstr  )  [inline]

faudes::String::operator std::string (  )  const [inline]

Conversion to std::string.

void faudes::String::DoWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const [virtual]

Write data to Tokenwriter.

Parameters:
rTw Reference to TokenWriter.
rLabel Label of section to write.
pContext Write context to provide contextual information (ignored)
Exceptions:
Exception 
  • IO Error

Reimplemented from faudes::Type.

void faudes::String::DoRead ( TokenReader rTr,
const std::string &  rLabel = "",
const Type pContext = 0 
) [virtual]

Read data from TokenReader.

Parameters:
rTr Reference to TokenReader.
rLabel Section to read.
pContext Read context to provide contextual information (ignored)
Exceptions:
Exception 

Reimplemented from faudes::Type.


Member Data Documentation

std::string faudes::String::mCString [protected]

Variable to store current value.


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

libFAUDES 2.13a c++ source docu by doxygen 1.5.6