]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Value.cpp
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / Value.cpp
1 #include "Value.h"
2
3 #include "DataType.h"
4
5 #include <iostream>
6
7 namespace Databoard {
8
9         namespace Value {
10
11                 Value::Value(Databoard::Type::DataType* dataBoard)
12                 {
13                         object = NULL;
14
15                         this->dataBoard = dataBoard;
16                 }
17
18
19                 Value::~Value()
20                 {
21                 }
22
23                 void* Value::getObject()
24                 {
25                         return object;
26                 }
27
28                 Databoard::Type::DataType* Value::type()
29                 {
30                         return dataBoard;
31                 }
32
33                 void Value::freeType()
34                 {
35                         delete dataBoard;
36                         dataBoard = 0;
37                 }
38
39                 std::string Value::writeOut(int indent)
40                 {
41                         std::string s;
42
43                         s.append(2 * indent, ' ');
44
45                         return s;
46                 }
47
48                 bool Value::equals(const Value* /*other*/)
49                 {
50                         return true;
51                 }
52
53                 std::string Value::isValid()
54                 {
55                         return "not implemented!";
56                 }
57         }
58 }