openDAQ
Open data acquisition platform
OwnablePtr Class Reference

An ownable object can have IPropertyObject as the owner. More...

Inherits ObjectPtr< IOwnable >.

Detailed Description

An ownable object can have IPropertyObject as the owner.

An object can declare itself ownable. When a parent object that supports a concept of ownership calls thesetOwner method, it becomes the owner of the object. It's up to the object's implementation to decide what actions should it forward to the owner.

For example, a property object that is a child of another property object will look up property values in their owner's dictionary if the property is not set locally.

Public Member Functions

void setOwner (const daq::PropertyObjectPtr &owner) const
 Sets the owner of the object. More...
 

Member Function Documentation

◆ setOwner()

void setOwner ( const daq::PropertyObjectPtr &  owner) const
inline

Sets the owner of the object.

Parameters
ownerThe object that will own this object.