add constructor

This commit is contained in:
Marty Kraimer
2012-11-01 15:13:57 -04:00
parent 63268f3823
commit 10c36c18a9
2 changed files with 8 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -39,6 +39,8 @@ public:
*/
static NTNameValuePtr create(
bool hasFunction,bool hasTimeStamp, bool hasAlarm);
static NTNameValuePtr create(
PVStructurePtr const & pvStructure);
/**
* Destructor
*/