openDAQ
Open data acquisition platform
+ Collaboration diagram for Tags:

Detailed Description

Modules

 Factories
 

Classes

struct  ITags
 List of string tags. Provides helpers to get and search the list of tags. More...
 
struct  ITagsPrivate
 Private interface to component tags. Allows for adding/removing tags. More...
 
class  TagsPrivatePtr
 Private interface to component tags. Allows for adding/removing tags. More...
 
class  TagsPtr
 List of string tags. Provides helpers to get and search the list of tags. More...
 

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...
 

Function Documentation

◆ contains()

daq::Bool contains ( const daq::StringPtr &  name) const
inline

Checks whether a tag is present in the list of tags.

Parameters
nameThe name of the tag being checked.
Returns
True if a tag is found; false otherwise.

◆ getList()

daq::ListPtr<daq::IString> getList ( ) const
inline

Gets the list of all tags in the list.

Returns
The list of tag strings.

◆ query()

daq::Bool query ( const daq::StringPtr &  query) const
inline

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.

Parameters
queryThe query string. I.e. "tag1 || (tag2 && tag3)"
Returns
The result of the query