3 namespace Databoard {
\r
10 virtual ~Value() = 0; // meniks tää näin..
\r
14 class Integer : public Value {
\r
22 void setValue(int value);
\r
31 class Array : public Value {
\r
33 virtual int size() = 0;
\r
34 virtual Value get(int index) = 0;
\r
39 class GenericArray : public Array {
\r
41 Value get(int index) { return values.get(index); }
\r
43 std::vector<Value> values;
\r
47 class ByteArray : public Array {
\r
49 Value get(int index) { return null; }
\r
50 char* getPrimitiveArray() { return null; }
\r
52 std::vector<char> values;
\r
55 class Double : public Value {
\r
57 double getValue() { return value; }
\r