add constructor
This commit is contained in:
@@ -65,6 +65,12 @@ NTNameValuePtr NTNameValue::create(
|
||||
return NTNameValuePtr(new NTNameValue(pvStructure));
|
||||
}
|
||||
|
||||
NTNameValuePtr NTNameValue::create(
|
||||
PVStructurePtr const & pvStructure)
|
||||
{
|
||||
return NTNameValuePtr(new NTNameValue(pvStructure));
|
||||
}
|
||||
|
||||
NTNameValue::NTNameValue(PVStructure::shared_pointer const & pvStructure)
|
||||
: pvNTNameValue(pvStructure)
|
||||
{
|
||||
|
||||
@@ -39,6 +39,8 @@ public:
|
||||
*/
|
||||
static NTNameValuePtr create(
|
||||
bool hasFunction,bool hasTimeStamp, bool hasAlarm);
|
||||
static NTNameValuePtr create(
|
||||
PVStructurePtr const & pvStructure);
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user