class that treats data of various types More...
#include <Variant.h>

Classes | |
| union | PrimitiveType |
Public Types | |
| enum | DataType { UNKNOWN, BOOL, INTEGER, DOUBLE, STRING, ARRAY, PAIR, SAMPLE_SET, SAMPLE, SAMPLE_GETTER, SPECTRUM, DATA_SET, DATA_GROUP_NODE, CHROMATOGRAM, XY_DATA, PEAKS, PEAKS_2D, DRAWING_DATA, GRAPHICS, FONT, PROGRESS, MOUSE_EVT, KEY_EVT, DATA_MAP, SIZE_EVT, MOVE_EVT, WINDOW, SETTING_VALUES, SCRIPT, FILE_READER, OTHER } |
Public Member Functions | |
| Variant () | |
| constructor | |
| Variant (const Variant &v) | |
| copy constructor More... | |
| virtual | ~Variant () |
| destructor | |
| Variant & | operator= (const Variant &other) |
| substitution operator More... | |
| void | setString (const char *s) |
| sets character string More... | |
| char * | getString () |
| gets character string More... | |
| Variant * | createArray (const unsigned int size) |
| creates array More... | |
| Variant * | getArray () |
| gets array More... | |
| Variant * | getElement (const unsigned int index) |
| gets element of the array More... | |
| unsigned int | getArraySize () |
| gets array size More... | |
Public Attributes | |
| DataType | type |
|
union kome::objects::Variant::PrimitiveType | prim |
Protected Member Functions | |
| void | deleteArray () |
| deletes array | |
Protected Attributes | |
| void * | arr |
| kome::objects::Variant::Variant | ( | const Variant & | v | ) |
| Variant * kome::objects::Variant::createArray | ( | const unsigned int | size | ) |
creates array
| [in] | size | array size |
Definition at line 120 of file Variant.cpp.

| Variant * kome::objects::Variant::getArray | ( | ) |
| unsigned int kome::objects::Variant::getArraySize | ( | ) |
| Variant * kome::objects::Variant::getElement | ( | const unsigned int | index | ) |
gets element of the array
| [in] | index | element index |
Definition at line 148 of file Variant.cpp.

| char * kome::objects::Variant::getString | ( | ) |
substitution operator
| [in] | other | source variant object |
Definition at line 66 of file Variant.cpp.
| void kome::objects::Variant::setString | ( | const char * | s | ) |
sets character string
| [in] | s | character string |
Definition at line 92 of file Variant.cpp.

1.8.6