BIE::TypedBuffer_String Class Reference

String-typed buffer. More...

#include <TypedBuffer.h>

Inheritance diagram for BIE::TypedBuffer_String:
Collaboration diagram for BIE::TypedBuffer_String:

List of all members.

Public Member Functions

 TypedBuffer_String ()
 Create a new buffer for holding a string.
void setStringValue (string)
 Sets the value of a string buffer.
string getStringValue ()
 Returns the value from a buffer with type string.
string toString ()
 Returns a string representation of the typed buffer.

Friends

class boost::serialization::access


Detailed Description

String-typed buffer.

(Java port issue -- the C++ string class is mutable, meaning we don't create a brand new string object every time a new string value is put into the buffer. Java strings are immutable meaning the way the string class is used will have to change when porting.)


Constructor & Destructor Documentation

BIE::TypedBuffer_String::TypedBuffer_String (  ) 

Create a new buffer for holding a string.

The buffer will have no value until one is set.


Member Function Documentation

void BIE::TypedBuffer_String::setStringValue ( string   )  [virtual]

Sets the value of a string buffer.

Will throw an exception if the buffer's type is not string.

Reimplemented from BIE::TypedBuffer.

string BIE::TypedBuffer_String::getStringValue (  )  [virtual]

Returns the value from a buffer with type string.

The buffer must contain a value.

Reimplemented from BIE::TypedBuffer.


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

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:13 2010 by doxygen