openDAQ
Open data acquisition platform
TagsPtr Class Reference

List of string tags. Provides helpers to get and search the list of tags. More...

Inherits ObjectPtr< ITags >.

Detailed Description

List of string tags. Provides helpers to get and search the list of tags.

Tags provide a view into an underlying list of tags. The list can be retrieved via getList, and inspected through contains and query.

To manipulate the list of tags, the add/remove tag functions can be used. The Tags object can only be modified if the object is not locked by the owning Component.

Public Member Functions

daq::ListPtr< daq::IString > getList () const
 Gets the list of all tags in the list. More...
 
daq::Bool contains (const daq::StringPtr &name) const
 Checks whether a tag is present in the list of tags. More...
 
daq::Bool query (const daq::StringPtr &query) const
 Queries the list of tags, creating an EvalValue expression from the query string. Returns true if the list of tags matches the query, false otherwise. More...