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>
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< AddNodesResult > | AddNodes (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< StatusCode > | AddReferences (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< Variant > | CallMethod (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< Node > | GetChildren (const OpcUa::ReferenceId &refid) const |
List childrenn nodes by specified reference. | |
std::vector< Node > | GetChildren () const |
Get ghildren by hierarchal referencies. | |
Variant | GetDataType () const |
DataValue | GetDataValue () const |
NodeId | GetId () const |
std::vector< Node > | GetProperties () const |
OpcUa::Services::SharedPtr | GetServices () const |
Variant | GetValue () const |
std::vector< Node > | GetVariables () 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 |
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.
OpcUa::Node::Node | ( | Services::SharedPtr | srv | ) | [explicit] |
OpcUa::Node::Node | ( | Services::SharedPtr | srv, |
const NodeId & | id | ||
) |
OpcUa::Node::Node | ( | const Node & | other | ) |
OpcUa::Node::Node | ( | ) | [inline] |
Node OpcUa::Node::AddFolder | ( | const NodeId & | folderId, |
const QualifiedName & | browseName | ||
) | const |
Node OpcUa::Node::AddFolder | ( | const std::string & | nodeid, |
const std::string & | browseName | ||
) | const |
Node OpcUa::Node::AddFolder | ( | uint32_t | namespaceidx, |
const std::string & | browseName | ||
) | const |
Node OpcUa::Node::AddMethod | ( | const NodeId & | variableId, |
const QualifiedName & | browsename, | ||
std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)> | method | ||
) | const |
Node OpcUa::Node::AddMethod | ( | uint32_t | namespaceidx, |
const std::string & | BrowseName, | ||
std::function< std::vector< OpcUa::Variant >(std::vector< OpcUa::Variant > arguments)> | method | ||
) | const |
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 |
std::vector< AddNodesResult > OpcUa::Node::AddNodes | ( | std::vector< AddNodesItem > | items | ) | const |
Node OpcUa::Node::AddObject | ( | const NodeId & | folderId, |
const QualifiedName & | browseName | ||
) | const |
Node OpcUa::Node::AddObject | ( | const std::string & | nodeid, |
const std::string & | browseName | ||
) | const |
Node OpcUa::Node::AddObject | ( | uint32_t | namespaceidx, |
const std::string & | browseName | ||
) | const |
Node OpcUa::Node::AddProperty | ( | const NodeId & | propertyId, |
const QualifiedName & | browsename, | ||
const Variant & | val | ||
) | const |
Node OpcUa::Node::AddProperty | ( | const std::string & | nodeid, |
const std::string & | browseName, | ||
const Variant & | val | ||
) | const |
Node OpcUa::Node::AddProperty | ( | uint32_t | namespaceidx, |
const std::string & | browseName, | ||
const Variant & | val | ||
) | const |
std::vector< StatusCode > OpcUa::Node::AddReferences | ( | std::vector< AddReferencesItem > | items | ) | const |
Node OpcUa::Node::AddVariable | ( | const NodeId & | variableId, |
const QualifiedName & | browsename, | ||
const Variant & | val | ||
) | const |
Node OpcUa::Node::AddVariable | ( | uint32_t | namespaceidx, |
const std::string & | BrowseName, | ||
const Variant & | val | ||
) | const |
Node OpcUa::Node::AddVariable | ( | const std::string & | nodeId, |
const std::string & | browseName, | ||
const Variant & | val | ||
) | const |
std::vector< Variant > OpcUa::Node::CallMethod | ( | NodeId | methodId, |
std::vector< Variant > | inputArguments | ||
) | const |
std::vector< std::vector< Variant > > OpcUa::Node::CallMethods | ( | std::vector< NodeId > | methodIds, |
std::vector< std::vector< Variant >> | inputArguments | ||
) | const |
DataValue OpcUa::Node::GetAttribute | ( | const AttributeId | attr | ) | const |
QualifiedName OpcUa::Node::GetBrowseName | ( | ) | const |
Node OpcUa::Node::GetChild | ( | const std::vector< OpcUa::QualifiedName > & | path | ) | const |
Node OpcUa::Node::GetChild | ( | const std::vector< std::string > & | path | ) | const |
Node OpcUa::Node::GetChild | ( | const std::string & | browsename | ) | const |
std::vector< Node > OpcUa::Node::GetChildren | ( | const OpcUa::ReferenceId & | refid | ) | const |
std::vector< Node > OpcUa::Node::GetChildren | ( | ) | const |
Variant OpcUa::Node::GetDataType | ( | ) | const |
DataValue OpcUa::Node::GetDataValue | ( | ) | const |
NodeId OpcUa::Node::GetId | ( | ) | const |
std::vector<Node> OpcUa::Node::GetProperties | ( | ) | const [inline] |
OpcUa::Services::SharedPtr OpcUa::Node::GetServices | ( | ) | const [inline] |
Variant OpcUa::Node::GetValue | ( | ) | const |
std::vector<Node> OpcUa::Node::GetVariables | ( | ) | const [inline] |
bool OpcUa::Node::operator!= | ( | Node const & | x | ) | const [inline] |
bool OpcUa::Node::operator== | ( | Node const & | x | ) | const [inline] |
void OpcUa::Node::SetAttribute | ( | AttributeId | attr, |
const DataValue & | dval | ||
) | const |
void OpcUa::Node::SetValue | ( | const Variant & | val | ) | const |
void OpcUa::Node::SetValue | ( | const DataValue & | dval | ) | const |
std::string OpcUa::Node::ToString | ( | ) | const |
NodeId OpcUa::Node::Id [protected] |
OpcUa::Services::SharedPtr OpcUa::Node::Server [protected] |