BIE |
BIE::TypedBuffer Class ReferenceFor holding a value that has a basic type. More...
Inheritance diagram for BIE::TypedBuffer:
![]()
Collaboration diagram for BIE::TypedBuffer:
![]()
Detailed DescriptionFor holding a value that has a basic type.Operations for setting and retreiving the value in the buffer. This is an abstract class, and the implementation of each of the basic types is left to subclasses. The default set and get methods throw a TypeException - subclasses only need to implement the methods relating to its own type, meaning that where types do not match an exception is thrown. Member Function Documentation
Creates a new TypedBuffer object with the given basic type. The object will contain no value until one is set using one of the value setting functions.
Sets the value of a string buffer. Will throw an exception if the buffer's type is not string. Reimplemented in BIE::TypedBuffer_String.
Sets the value of an integer string buffer. Will throw an exception if the buffer's type is not integer. Reimplemented in BIE::TypedBuffer_Int.
Sets the value of a real buffer. Will throw an exception if the buffer's type is not real. Reimplemented in BIE::TypedBuffer_Real.
Sets the value of a bool buffer. Will throw an exception if the buffer's type is not bool. Reimplemented in BIE::TypedBuffer_Bool.
Sets the values of an integer array. Will throw an exception if the type is wrong. STL vector input Reimplemented in BIE::TypedBuffer_IntArray.
Sets the values of an real (double) array. STL vector input Reimplemented in BIE::TypedBuffer_RealArray.
Returns the value from a buffer with type string. The buffer must contain a value. Reimplemented in BIE::TypedBuffer_String.
Returns the value from a buffer with type integer. The buffer must contain a value. Reimplemented in BIE::TypedBuffer_Int.
Returns the value from a buffer with type real. The buffer must contain a value. Reimplemented in BIE::TypedBuffer_Real.
Returns the value from a buffer with type bool. The buffer must contain a value. Reimplemented in BIE::TypedBuffer_Bool.
Erases any value the buffer has, such that hasValue() will return false. until a set___Value method is called.
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
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||