libFAUDES

Sections

Index

faudes::String Class Reference

#include <rtitypes.h>

Inherits faudes::Type.

List of all members.


Detailed Description

Elementary type.

Definition at line 1411 of file rtitypes.h.


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.
virtual TypeCopy (void) const
 Construct copy 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.

Definition at line 648 of file rtitypes.cpp.

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

Constructor provided with initial value.

Parameters:
val Initial value.

Definition at line 653 of file rtitypes.cpp.

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

Destructor.

Definition at line 1426 of file rtitypes.h.


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.

Definition at line 658 of file rtitypes.cpp.

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

Construct copy on heap.

Create new String instance and return pointer.

Returns:
Pointer to Integer instance.

Reimplemented from faudes::Type.

Definition at line 663 of file rtitypes.cpp.

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

Set value.

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

Definition at line 673 of file rtitypes.cpp.

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

Get value.

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

Definition at line 668 of file rtitypes.cpp.

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

Get reference.

Returns:
Reference to c value.

Definition at line 678 of file rtitypes.cpp.

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

Assignment operator.

Definition at line 1477 of file rtitypes.h.

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

Definition at line 1485 of file rtitypes.h.

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

Conversion to std::string.

Definition at line 1493 of file rtitypes.h.

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.

Definition at line 683 of file rtitypes.cpp.

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.

Definition at line 694 of file rtitypes.cpp.


Member Data Documentation

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

Variable to store current value.

Definition at line 1530 of file rtitypes.h.


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

libFAUDES 2.14g --- 2009-12-3 --- c++ source docu by doxygen 1.5.6