]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/StringValue.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / StringValue.h
1 #pragma once\r
2 \r
3 #include "Value.h"\r
4 \r
5 #include <string>\r
6 \r
7 namespace Databoard {\r
8         namespace Value {\r
9 \r
10                 class DATABOARD_API StringValue : public Value {\r
11                 public:\r
12                         StringValue(Databoard::Type::DataType* dataBoard);\r
13                         virtual ~StringValue();\r
14 \r
15                         void setValue(std::string value);\r
16                         std::string getValue();\r
17 \r
18                         virtual std::string writeOut(int indent = 0);\r
19                         virtual bool equals(const Value* other);\r
20                         virtual std::string isValid();\r
21 \r
22                 protected:\r
23 \r
24                         std::string value;\r
25                 };\r
26         }\r
27 }\r