forked from xcore/tool_axe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProperty.cpp
More file actions
29 lines (25 loc) · 685 Bytes
/
Property.cpp
File metadata and controls
29 lines (25 loc) · 685 Bytes
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
// Copyright (c) 2011-2012, Richard Osborne, All rights reserved
// This software is freely distributable under a derivative of the
// University of Illinois/NCSA Open Source License posted in
// LICENSE.txt and at <http://github.xcore.com/>
#include "Property.h"
Property Property::integerProperty(const PropertyDescriptor *d, int32_t value)
{
Property p(d);
p.setInteger(value);
return p;
}
Property Property::
stringProperty(const PropertyDescriptor *d, const std::string &value)
{
Property p(d);
p.setString(value);
return p;
}
Property Property::
portProperty(const PropertyDescriptor *d, const PortArg &value)
{
Property p(d);
p.setPort(value);
return p;
}