X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FOptionalType.cpp;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FOptionalType.cpp;h=f45182a5c39f6565c680a82fa34210c47023491a;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=dbc53167395dbf5f635e233d3c3f3a87de30d2ca;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalType.cpp b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalType.cpp index dbc531673..f45182a5c 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalType.cpp +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalType.cpp @@ -1,52 +1,52 @@ -#include "OptionalType.h" - -namespace Databoard { - namespace Type { - - OptionalType::OptionalType() - { - componentType = NULL; - } - - OptionalType::OptionalType(DataType* componentType) - { - this->componentType = componentType; - } - - OptionalType::~OptionalType() - { - if(componentType != NULL) - { - delete componentType; - } - } - - DataType* OptionalType::getComponentType() - { - return componentType; - } - - void OptionalType::setComponentType(DataType* componentType) - { - this->componentType = componentType; - } - - std::string OptionalType::writeOut(int /*indent*/) - { - std::string s; - - s.append("Optional"); - - s += "("; - - if(componentType != NULL) - { - s += componentType->writeOut(); - } - - s += ")"; - - return s; - } - } -} +#include "OptionalType.h" + +namespace Databoard { + namespace Type { + + OptionalType::OptionalType() + { + componentType = NULL; + } + + OptionalType::OptionalType(DataType* componentType) + { + this->componentType = componentType; + } + + OptionalType::~OptionalType() + { + if(componentType != NULL) + { + delete componentType; + } + } + + DataType* OptionalType::getComponentType() + { + return componentType; + } + + void OptionalType::setComponentType(DataType* componentType) + { + this->componentType = componentType; + } + + std::string OptionalType::writeOut(int /*indent*/) + { + std::string s; + + s.append("Optional"); + + s += "("; + + if(componentType != NULL) + { + s += componentType->writeOut(); + } + + s += ")"; + + return s; + } + } +}