-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOneWireIOBuilder.cpp
42 lines (34 loc) · 1.01 KB
/
OneWireIOBuilder.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
OneWireIOBuilder implementation.
*/
#include "OneWireIOServer.h"
#include "OneWireIOBuilder.h"
using namespace OneWireIO;
OneWireIOBuilder::OneWireIOBuilder(const char* libName, const char* timeStamp)
: CDPBuilder(libName, timeStamp)
{
}
CDPComponent* OneWireIOBuilder::CreateNewComponent(const std::string& type)
{
if (type=="OneWireIO.OneWireIOServer")
return new OneWireIOServer;
return CDPBuilder::CreateNewComponent(type);
}
CDPBaseObject* OneWireIOBuilder::CreateNewCDPOperator(const std::string& modelName, const std::string& type, const CDPPropertyBase* inputProperty)
{
return CDPBuilder::CreateNewCDPOperator(modelName, type, inputProperty);
}
/**
Do not edit. Autogenerated Builder CDPObject factory function.
*/
CDPObject* OneWireIOBuilder::CreateNewObject(const std::string& type)
{
return CDPBuilder::CreateNewObject(type);
}
/**
CDPNode factory function.
*/
CDP::StudioAPI::CDPNode* OneWireIOBuilder::CreateNewCDPNode(const std::string& type)
{
return CDPBuilder::CreateNewCDPNode(type);
}