|
LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
Value class for the LOOS Kernel (virtual machine) More...
#include <KernelValue.hpp>
Public Types | |
| enum | ValueType { NONE , STRING , INT , FLOAT } |
| Type of data this Value contains... | |
Public Member Functions | |
| void | copy (const Value &v) |
| Make a copy (clone) of a Value. | |
| Value (const Value &v) | |
| const Value & | operator= (const Value &v) |
| Value (const std::string s) | |
| Value (const float f) | |
| Value (const long i) | |
| Value (const int i) | |
| void | setString (const std::string s) |
| void | setFloat (const float f) |
| void | setInt (const long i) |
| std::string | getString (void) const |
| Retrieve data, throwing an error if the Value is of the incorrect type. | |
| float | getFloat (void) const |
| Retrieve data, throwing an error if the Value is of the incorrect type. | |
| long | getInt (void) const |
| Retrieve data, throwing an error if the Value is of the incorrect type. | |
Public Attributes | ||
| ValueType | type | |
| union { | ||
| std::string * str | ||
| float flt | ||
| long itg | ||
| }; | ||
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Value &v) |
| Output in pseudo-XML. | |
Value class for the LOOS Kernel (virtual machine)
These are the "values" that are on the data stack for the Kernel...