openDAQ
Open data acquisition platform
PropertyObjectProtectedPtr Class Reference

Provides protected access that allows changing read-only property values of a Property object. More...

Inherits ObjectPtr< IPropertyObjectProtected >.

Detailed Description

Provides protected access that allows changing read-only property values of a Property object.

Public Member Functions

void setProtectedPropertyValue (const daq::StringPtr &propertyName, const daq::BaseObjectPtr &value) const
 Sets a property value. Does not fail if the property is read-only. More...
 
void clearProtectedPropertyValue (const daq::StringPtr &propertyName) const
 Clears a property value. Does not fail if the property is read-only. More...
 

Member Function Documentation

◆ clearProtectedPropertyValue()

void clearProtectedPropertyValue ( const daq::StringPtr &  propertyName) const
inline

Clears a property value. Does not fail if the property is read-only.

Parameters
propertyNameThe name of the Property of which value the function should be cleared.

◆ setProtectedPropertyValue()

void setProtectedPropertyValue ( const daq::StringPtr &  propertyName,
const daq::BaseObjectPtr &  value 
) const
inline

Sets a property value. Does not fail if the property is read-only.

Parameters
propertyNameThe name of the Property of which value the function should set.
valueThe property value to set.