Acts as a container for other components. More...
Acts as a container for other components.
Other components use the folder component to organize the children components, such as channels, signals, function blocks, etc.
Public Member Functions | |
daq::ListPtr< daq::IComponent > | getItems (const daq::SearchFilterPtr &searchFilter=nullptr) const |
Gets the list of the items in the folder. More... | |
daq::Bool | isEmpty () const |
Returns True if the folder is empty. More... | |
daq::Bool | hasItem (const daq::StringPtr &localId) const |
Returns True if the folder has an item with local ID. More... | |
daq::GenericComponentPtr< daq::IComponent > | getItem (const daq::StringPtr &localId) const |
Gets the item component with the specified localId. More... | |
|
inline |
Gets the item component with the specified localId.
localId | The local id of the child component. |
OPENDAQ_SUCCESS | if succeeded. |
OPENDAQ_NOT_FOUND | if folder with the specified ID not found. |
|
inline |
Gets the list of the items in the folder.
searchFilter | Provides an optional filter that filters out unwanted components and allows for recursion. |
If searchFilter is not provided, the returned list contains only immediate children with visible set to true
.
|
inline |
Returns True if the folder has an item with local ID.
localId | The local ID of the item. |
|
inline |
Returns True if the folder is empty.