openDAQ
Open data acquisition platform
TagsPrivatePtr Class Reference

Private interface to component tags. Allows for adding/removing tags. More...

Inherits ObjectPtr< ITagsPrivate >.

Detailed Description

Private interface to component tags. Allows for adding/removing tags.

Modifying the tags of a component might have unintended sideffects and should in most cases only be done by the component owner module.

Public Member Functions

void add (const daq::StringPtr &name) const
 Adds a new tag to the list. More...
 
void remove (const daq::StringPtr &name) const
 Removes a new tag from the list. More...
 
void replace (const daq::ListPtr< daq::IString > &tags) const
 Replaces all tags. More...
 

Member Function Documentation

◆ add()

void add ( const daq::StringPtr &  name) const
inline

Adds a new tag to the list.

Parameters
nameThe name of the tag to be added.
Returns
nullptr if a node with the name is already in the list of tags.

◆ remove()

void remove ( const daq::StringPtr &  name) const
inline

Removes a new tag from the list.

Parameters
nameThe name of the tag to be removed.
Returns
nullptr if a node with the name is not in the list of tags.

◆ replace()

void replace ( const daq::ListPtr< daq::IString > &  tags) const
inline

Replaces all tags.

Parameters
tagsThe new list of tags.