MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / SetProductDetails

Method SetProductDetails

cpp/src/Node.cpp:3892–3903  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Assign a ProductDetails class to this node -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3890// Assign a ProductDetails class to this node
3891//-----------------------------------------------------------------------------
3892void Node::SetProductDetails
3893(
3894 ProductDescriptor *product
3895)
3896{
3897 /* if there is a ProductDescriptor already assigned, remove the reference */
3898 if (m_Product)
3899 m_Product->Release();
3900 /* add the new ProductDescriptor */
3901 m_Product = product;
3902 m_Product->AddRef();
3903}
3904
3905//-----------------------------------------------------------------------------
3906// <Node::getConfigPath>

Callers 2

AdvanceQueriesMethod · 0.45
ReadXMLMethod · 0.45

Calls 2

AddRefMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected