-#include "Component.h"\r
-\r
-#include "DataType.h"\r
-\r
-#include <iostream>\r
-\r
-namespace Databoard {\r
- namespace Type {\r
-\r
- Component::Component(std::string name, DataType* type)\r
- {\r
- usingBuiltInType = type->getNotBuiltIn();\r
- \r
- this->name = name;\r
- this->type = type;\r
- }\r
-\r
- Component::~Component()\r
- {\r
- if(type != NULL && usingBuiltInType == false)\r
- {\r
- delete type;\r
- }\r
- }\r
-\r
- std::string Component::getName()\r
- {\r
- return name;\r
- }\r
-\r
- DataType* Component::getDataBoard()\r
- {\r
- return type;\r
- }\r
- }\r
-}\r
+#include "Component.h"
+
+#include "DataType.h"
+
+#include <iostream>
+
+namespace Databoard {
+ namespace Type {
+
+ Component::Component(std::string name, DataType* type)
+ {
+ usingBuiltInType = type->getNotBuiltIn();
+
+ this->name = name;
+ this->type = type;
+ }
+
+ Component::~Component()
+ {
+ if(type != NULL && usingBuiltInType == false)
+ {
+ delete type;
+ }
+ }
+
+ std::string Component::getName()
+ {
+ return name;
+ }
+
+ DataType* Component::getDataBoard()
+ {
+ return type;
+ }
+ }
+}