Public Member Functions | Protected Attributes
OpcUa::Node Class Reference

A Node object represent an OPC-UA node. It is high level object intended for developper who want to expose data through OPC-UA or read data from an OPCUA server. Node are usually not create directly but obtained through call to GetRootNode of GetObjectsNode on server or client side. More...

#include <node.h>

List of all members.

Public Member Functions

Node AddFolder (const NodeId &folderId, const QualifiedName &browseName) const
Node AddFolder (const std::string &nodeid, const std::string &browseName) const
Node AddFolder (uint32_t namespaceidx, const std::string &browseName) const
Node AddMethod (const NodeId &variableId, const QualifiedName &browsename, std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)> method) const
Node AddMethod (uint32_t namespaceidx, const std::string &BrowseName, std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)> method) const
Node AddMethod (const std::string &nodeId, const std::string &browseName, std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)> method) const
std::vector< AddNodesResultAddNodes (std::vector< AddNodesItem > items) const
Node AddObject (const NodeId &folderId, const QualifiedName &browseName) const
Node AddObject (const std::string &nodeid, const std::string &browseName) const
Node AddObject (uint32_t namespaceidx, const std::string &browseName) const
Node AddProperty (const NodeId &propertyId, const QualifiedName &browsename, const Variant &val) const
Node AddProperty (const std::string &nodeid, const std::string &browseName, const Variant &val) const
Node AddProperty (uint32_t namespaceidx, const std::string &browseName, const Variant &val) const
std::vector< StatusCodeAddReferences (std::vector< AddReferencesItem > items) const
Node AddVariable (const NodeId &variableId, const QualifiedName &browsename, const Variant &val) const
Node AddVariable (uint32_t namespaceidx, const std::string &BrowseName, const Variant &val) const
Node AddVariable (const std::string &nodeId, const std::string &browseName, const Variant &val) const
std::vector< VariantCallMethod (NodeId methodId, std::vector< Variant > inputArguments) const
std::vector< std::vector
< Variant > > 
CallMethods (std::vector< NodeId > methodIds, std::vector< std::vector< Variant >> inputArguments) const
DataValue GetAttribute (const AttributeId attr) const
QualifiedName GetBrowseName () const
Node GetChild (const std::vector< OpcUa::QualifiedName > &path) const
Node GetChild (const std::vector< std::string > &path) const
Node GetChild (const std::string &browsename) const
std::vector< NodeGetChildren (const OpcUa::ReferenceId &refid) const
 List childrenn nodes by specified reference.
std::vector< NodeGetChildren () const
 Get ghildren by hierarchal referencies.
Variant GetDataType () const
DataValue GetDataValue () const
NodeId GetId () const
std::vector< NodeGetProperties () const
OpcUa::Services::SharedPtr GetServices () const
Variant GetValue () const
std::vector< NodeGetVariables () const
 Node (Services::SharedPtr srv)
 Node (Services::SharedPtr srv, const NodeId &id)
 Node (const Node &other)
 Node ()
bool operator!= (Node const &x) const
bool operator== (Node const &x) const
void SetAttribute (AttributeId attr, const DataValue &dval) const
void SetValue (const Variant &val) const
void SetValue (const DataValue &dval) const
std::string ToString () const

Protected Attributes

NodeId Id
OpcUa::Services::SharedPtr Server

Detailed Description

A Node object represent an OPC-UA node. It is high level object intended for developper who want to expose data through OPC-UA or read data from an OPCUA server. Node are usually not create directly but obtained through call to GetRootNode of GetObjectsNode on server or client side.

Definition at line 42 of file node.h.


Constructor & Destructor Documentation

OpcUa::Node::Node ( Services::SharedPtr  srv) [explicit]

Definition at line 33 of file node.cpp.

OpcUa::Node::Node ( Services::SharedPtr  srv,
const NodeId id 
)

Definition at line 38 of file node.cpp.

OpcUa::Node::Node ( const Node other)

Definition at line 44 of file node.cpp.

OpcUa::Node::Node ( ) [inline]

Definition at line 49 of file node.h.


Member Function Documentation

Node OpcUa::Node::AddFolder ( const NodeId folderId,
const QualifiedName browseName 
) const

Definition at line 262 of file node.cpp.

Node OpcUa::Node::AddFolder ( const std::string &  nodeid,
const std::string &  browseName 
) const

Definition at line 248 of file node.cpp.

Node OpcUa::Node::AddFolder ( uint32_t  namespaceidx,
const std::string &  browseName 
) const

Definition at line 255 of file node.cpp.

Node OpcUa::Node::AddMethod ( const NodeId variableId,
const QualifiedName browsename,
std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)>  method 
) const

Definition at line 440 of file node.cpp.

Node OpcUa::Node::AddMethod ( uint32_t  namespaceidx,
const std::string &  BrowseName,
std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)>  method 
) const

Definition at line 426 of file node.cpp.

Node OpcUa::Node::AddMethod ( const std::string &  nodeId,
const std::string &  browseName,
std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)>  method 
) const

Definition at line 433 of file node.cpp.

std::vector< AddNodesResult > OpcUa::Node::AddNodes ( std::vector< AddNodesItem items) const

Definition at line 188 of file node.cpp.

Node OpcUa::Node::AddObject ( const NodeId folderId,
const QualifiedName browseName 
) const

Definition at line 302 of file node.cpp.

Node OpcUa::Node::AddObject ( const std::string &  nodeid,
const std::string &  browseName 
) const

Definition at line 287 of file node.cpp.

Node OpcUa::Node::AddObject ( uint32_t  namespaceidx,
const std::string &  browseName 
) const

Definition at line 294 of file node.cpp.

Node OpcUa::Node::AddProperty ( const NodeId propertyId,
const QualifiedName browsename,
const Variant val 
) const

Definition at line 390 of file node.cpp.

Node OpcUa::Node::AddProperty ( const std::string &  nodeid,
const std::string &  browseName,
const Variant val 
) const

Definition at line 383 of file node.cpp.

Node OpcUa::Node::AddProperty ( uint32_t  namespaceidx,
const std::string &  browseName,
const Variant val 
) const

Definition at line 376 of file node.cpp.

std::vector< StatusCode > OpcUa::Node::AddReferences ( std::vector< AddReferencesItem items) const

Definition at line 193 of file node.cpp.

Node OpcUa::Node::AddVariable ( const NodeId variableId,
const QualifiedName browsename,
const Variant val 
) const

Definition at line 341 of file node.cpp.

Node OpcUa::Node::AddVariable ( uint32_t  namespaceidx,
const std::string &  BrowseName,
const Variant val 
) const

Definition at line 327 of file node.cpp.

Node OpcUa::Node::AddVariable ( const std::string &  nodeId,
const std::string &  browseName,
const Variant val 
) const

Definition at line 334 of file node.cpp.

std::vector< Variant > OpcUa::Node::CallMethod ( NodeId  methodId,
std::vector< Variant inputArguments 
) const

Definition at line 73 of file node.cpp.

std::vector< std::vector< Variant > > OpcUa::Node::CallMethods ( std::vector< NodeId methodIds,
std::vector< std::vector< Variant >>  inputArguments 
) const

Definition at line 86 of file node.cpp.

Definition at line 55 of file node.cpp.

Definition at line 178 of file node.cpp.

Node OpcUa::Node::GetChild ( const std::vector< OpcUa::QualifiedName > &  path) const
Node OpcUa::Node::GetChild ( const std::vector< std::string > &  path) const

Definition at line 203 of file node.cpp.

Node OpcUa::Node::GetChild ( const std::string &  browsename) const

Definition at line 198 of file node.cpp.

std::vector< Node > OpcUa::Node::GetChildren ( const OpcUa::ReferenceId refid) const

List childrenn nodes by specified reference.

Returns:
One or zero chilren nodes.

Definition at line 138 of file node.cpp.

std::vector< Node > OpcUa::Node::GetChildren ( ) const

Get ghildren by hierarchal referencies.

Returns:
One or zero chilren nodes.

Definition at line 173 of file node.cpp.

Definition at line 479 of file node.cpp.

Definition at line 474 of file node.cpp.

Definition at line 50 of file node.cpp.

std::vector<Node> OpcUa::Node::GetProperties ( ) const [inline]

Definition at line 72 of file node.h.

OpcUa::Services::SharedPtr OpcUa::Node::GetServices ( ) const [inline]

Definition at line 129 of file node.h.

Definition at line 469 of file node.cpp.

std::vector<Node> OpcUa::Node::GetVariables ( ) const [inline]

Definition at line 73 of file node.h.

bool OpcUa::Node::operator!= ( Node const &  x) const [inline]

Definition at line 126 of file node.h.

bool OpcUa::Node::operator== ( Node const &  x) const [inline]

Definition at line 125 of file node.h.

void OpcUa::Node::SetAttribute ( AttributeId  attr,
const DataValue dval 
) const

Definition at line 116 of file node.cpp.

void OpcUa::Node::SetValue ( const Variant val) const

Definition at line 126 of file node.cpp.

void OpcUa::Node::SetValue ( const DataValue dval) const

Definition at line 132 of file node.cpp.

std::string OpcUa::Node::ToString ( ) const

Definition at line 241 of file node.cpp.


Member Data Documentation

NodeId OpcUa::Node::Id [protected]

Definition at line 133 of file node.h.

OpcUa::Services::SharedPtr OpcUa::Node::Server [protected]

Definition at line 132 of file node.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:59