IDS peak genericC++  v1.4.3
peak::core::nodes::StringNode Class Reference

Represents a GenAPI string node. More...

#include <peak/node_map/peak_string_node.hpp>

Inheritance diagram for peak::core::nodes::StringNode:
peak::core::nodes::Node

Public Member Functions

 StringNode ()=delete
 
 ~StringNode () override=default
 
 StringNode (const StringNode &other)=delete
 
StringNode & operator= (const StringNode &other)=delete
 
 StringNode (StringNode &&other)=delete
 
StringNode & operator= (StringNode &&other)=delete
 
int64_t MaximumLength () const
 Returns the maximum length. More...
 
std::string Value (NodeCacheUsePolicy cacheUsePolicy=NodeCacheUsePolicy::UseCache) const
 Returns the value. More...
 
void SetValue (const std::string &value)
 Sets the given value. More...
 
- Public Member Functions inherited from peak::core::nodes::Node
 Node ()=delete
 
virtual ~Node ()
 
 Node (const Node &other)=delete
 
Node & operator= (const Node &other)=delete
 
 Node (Node &&other)=delete
 
Node & operator= (Node &&other)=delete
 
std::string Name () const
 Returns the name. More...
 
std::string DisplayName () const
 Returns the display name. More...
 
NodeNamespace Namespace () const
 Returns the namespace the node belongs to. More...
 
NodeVisibility Visibility () const
 Returns the visibility. More...
 
NodeAccessStatus AccessStatus () const
 Returns the access status. More...
 
bool IsCacheable () const
 Checks whether the node is cacheable. More...
 
bool IsAccessStatusCacheable () const
 Checks whether the node's access status is cacheable. More...
 
bool IsStreamable () const
 Checks whether the node is streamable. More...
 
bool IsDeprecated () const
 Checks whether the node is deprecated. More...
 
bool IsFeature () const
 Checks whether the node is a feature, i.e. it can be reached via category nodes from a category node named "Root". More...
 
NodeCachingMode CachingMode () const
 Returns the caching mode. More...
 
int64_t PollingTime () const
 Returns the polling time. More...
 
std::string ToolTip () const
 Returns the tool tip. More...
 
std::string Description () const
 Returns the description. More...
 
NodeType Type () const
 Returns the type. More...
 
std::shared_ptr< NodeMap > ParentNodeMap () const
 Returns the parent node map. More...
 
std::shared_ptr< Node > FindInvalidatedNode (const std::string &name) const
 Tries to find an invalidated node with the given name. More...
 
template<class NodeType , typename std::enable_if< std::is_base_of< Node, NodeType >::value, int >::type = 0>
std::shared_ptr< NodeType > FindInvalidatedNode (const std::string &name) const
 Tries to find an invalidated node with the given name and type. More...
 
std::vector< std::shared_ptr< Node > > InvalidatedNodes () const
 Returns the invalidated nodes. More...
 
std::shared_ptr< Node > FindInvalidatingNode (const std::string &name) const
 Tries to find an invalidating node with the given name. More...
 
template<class NodeType , typename std::enable_if< std::is_base_of< Node, NodeType >::value, int >::type = 0>
std::shared_ptr< NodeType > FindInvalidatingNode (const std::string &name) const
 Tries to find an invalidating node with the given name and type. More...
 
std::vector< std::shared_ptr< Node > > InvalidatingNodes () const
 Returns the invalidating nodes. More...
 
std::shared_ptr< Node > FindSelectedNode (const std::string &name) const
 Tries to find a selected node with the given name. More...
 
template<class NodeType , typename std::enable_if< std::is_base_of< Node, NodeType >::value, int >::type = 0>
std::shared_ptr< NodeType > FindSelectedNode (const std::string &name) const
 Tries to find a selected node with the given name and type. More...
 
std::vector< std::shared_ptr< Node > > SelectedNodes () const
 Returns the selected nodes. More...
 
std::shared_ptr< Node > FindSelectingNode (const std::string &name) const
 Tries to find a selecting node with the given name. More...
 
template<class NodeType , typename std::enable_if< std::is_base_of< Node, NodeType >::value, int >::type = 0>
std::shared_ptr< NodeType > FindSelectingNode (const std::string &name) const
 Tries to find a selecting node with the given name and type. More...
 
std::vector< std::shared_ptr< Node > > SelectingNodes () const
 Returns the selecting nodes. More...
 
ChangedCallbackHandle RegisterChangedCallback (const ChangedCallback &callback)
 Registers a callback for signaling a change to the node. More...
 
void UnregisterChangedCallback (ChangedCallbackHandle callbackHandle)
 Unregisters a changed callback. More...
 

Additional Inherited Members

- Public Types inherited from peak::core::nodes::Node
using ChangedCallback = std::function< void(const std::shared_ptr< Node > &changedNode)>
 
using ChangedCallbackHandle = ChangedCallback *
 

Detailed Description

Represents a GenAPI string node.

Constructor & Destructor Documentation

◆ StringNode() [1/3]

peak::core::nodes::StringNode::StringNode ( )
delete

◆ ~StringNode()

peak::core::nodes::StringNode::~StringNode ( )
overridedefault

◆ StringNode() [2/3]

peak::core::nodes::StringNode::StringNode ( const StringNode &  other)
delete

◆ StringNode() [3/3]

peak::core::nodes::StringNode::StringNode ( StringNode &&  other)
delete

Member Function Documentation

◆ MaximumLength()

int64_t peak::core::nodes::StringNode::MaximumLength ( ) const
inline

Returns the maximum length.

Returns
Maximum length
Since
1.0
Exceptions
InternalErrorExceptionAn internal error has occurred.

◆ operator=() [1/2]

StringNode& peak::core::nodes::StringNode::operator= ( const StringNode &  other)
delete

◆ operator=() [2/2]

StringNode& peak::core::nodes::StringNode::operator= ( StringNode &&  other)
delete

◆ SetValue()

void peak::core::nodes::StringNode::SetValue ( const std::string &  value)
inline

Sets the given value.

Parameters
[in]valueThe value to set.
Since
1.0
Exceptions
InternalErrorExceptionAn internal error has occurred.

◆ Value()

std::string peak::core::nodes::StringNode::Value ( NodeCacheUsePolicy  cacheUsePolicy = NodeCacheUsePolicy::UseCache) const
inline

Returns the value.

Parameters
[in]cacheUsePolicyA flag telling whether the value should be read using the internal cache.
Returns
Value
Since
1.0
Exceptions
InternalErrorExceptionAn internal error has occurred.

The documentation for this class was generated from the following file: