![]() |
IDS peak genericC++
v1.4.3
|
Represents a GenAPI node map. More...
#include <peak/node_map/peak_node_map.hpp>
Classes | |
| class | ScopedNodeMapLock |
| Holds a recursive lock on the NodeMap. More... | |
Public Types | |
| using | NodeFilterFunction = std::function< bool(const std::shared_ptr< const nodes::Node > &nodeToFilter)> |
Public Member Functions | |
| NodeMap ()=delete | |
| ~NodeMap ()=default | |
| NodeMap (const NodeMap &other)=delete | |
| NodeMap & | operator= (const NodeMap &other)=delete |
| NodeMap (NodeMap &&other)=delete | |
| NodeMap & | operator= (NodeMap &&other)=delete |
| bool | HasNode (const std::string &name) const |
| Checks whether the node map contains a node with the given name. More... | |
| template<class NodeType , typename std::enable_if< std::is_base_of< nodes::Node, NodeType >::value, int >::type = 0> | |
| bool | HasNode (const std::string &name) |
| Checks whether the node map contains a node with the given name and type. More... | |
| std::shared_ptr< nodes::Node > | FindNode (const std::string &name) |
| Tries to find a node with the given name. More... | |
| template<class NodeType , typename std::enable_if< std::is_base_of< nodes::Node, NodeType >::value, int >::type = 0> | |
| std::shared_ptr< NodeType > | FindNode (const std::string &name) |
| Tries to find a node with the given name and type. More... | |
| void | InvalidateNodes () |
| Invalidates all nodes. More... | |
| void | PollNodes (int64_t elapsedTime_ms) |
| Polls all nodes having a polling time. More... | |
| std::vector< std::shared_ptr< nodes::Node > > | Nodes () const |
| Returns the nodes. More... | |
| bool | HasBufferSupportedChunks (const std::shared_ptr< Buffer > &buffer) const |
| Checks if the Buffer contains chunks corresponding to the NodeMap. More... | |
| void | UpdateChunkNodes (const std::shared_ptr< Buffer > &buffer) |
| Updates chunk information in the NodeMap. More... | |
| bool | HasEventSupportedData (const std::unique_ptr< Event > &event) const |
| Checks if the Event contains data corresponding to the NodeMap. More... | |
| void | UpdateEventNodes (const std::unique_ptr< Event > &event) |
| Updates event information in the NodeMap. More... | |
| void | StoreToFile (const std::string &filePath) const |
| Stores the values of streamable nodes to the file at the given file path. More... | |
| void | LoadFromFile (const std::string &filePath) |
| Loads the values of streamable nodes from the file at the given file path. More... | |
| std::unique_ptr< ScopedNodeMapLock > | Lock () |
| Locks a recursive mutex on the NodeMap. More... | |
Represents a GenAPI node map.
This class allows to interact with the nodes of a module.
| using peak::core::NodeMap::NodeFilterFunction = std::function<bool(const std::shared_ptr<const nodes::Node>& nodeToFilter)> |
The type of node filter functions.
|
delete |
|
default |
|
delete |
|
delete |
|
inline |
Tries to find a node with the given name.
| [in] | name | The name of the node to find. |
| NotFoundException | There is no node with the given name |
| InternalErrorException | An internal error has occurred. |
|
inline |
Tries to find a node with the given name and type.
| [in] | name | The name of the node to find. |
| NotFoundException | There is no node with the given name |
| InvalidCastException | The node cannot be cast to the given type |
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks if the Buffer contains chunks corresponding to the NodeMap.
| [in] | buffer | The Buffer to check. |
| InvalidArgumentException | The given buffer is invalid. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks if the Event contains data corresponding to the NodeMap.
| [in] | event | The Event to check. |
| InvalidArgumentException | The given event is invalid. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the node map contains a node with the given name.
| [in] | name | The name of the node to find. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the node map contains a node with the given name and type.
| [in] | name | The name of the node to find. |
| InternalErrorException | An internal error has occurred. |
|
inline |
|
inline |
Loads the values of streamable nodes from the file at the given file path.
| [in] | filePath | The path of the file to load from. |
The file to load has to use the GenApi persistence file format. It is not recommended to edit files using this format manually unless you are familiar with the GenApi persistence functionality.
| InvalidArgumentException | The given file path is invalid |
| InternalErrorException | An internal error has occurred. |
|
inline |
Locks a recursive mutex on the NodeMap.
Use this to synchronize NodeMap access from multiple threads.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the nodes.
| InternalErrorException | An internal error has occurred. |
|
inline |
Polls all nodes having a polling time.
| [in] | elapsedTime_ms | The elapsed time since the last poll in milliseconds. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Stores the values of streamable nodes to the file at the given file path.
| [in] | filePath | The path of the file to store to. |
The stored file uses the GenApi persistence file format. It is not recommended to edit files using this format manually unless you are familiar with the GenApi persistence functionality.
| InvalidArgumentException | The given file path is invalid |
| InternalErrorException | An internal error has occurred. |
|
inline |
Updates chunk information in the NodeMap.
| [in] | buffer | The Buffer to update from. |
When chunks are active, pass each new buffer to this method to parse the chunks and update the corresponding chunk nodes in the NodeMap.
| InvalidArgumentException | The given buffer is invalid. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Updates event information in the NodeMap.
| [in] | event | The Event to update from. |
When events are active, pass each new event to this method to parse the event data and update the corresponding nodes in the NodeMap.
| InvalidArgumentException | The given Event does not have supported data |
| InternalErrorException | An internal error has occurred. |