46 explicit Node(Services::SharedPtr srv);
47 Node(Services::SharedPtr srv,
const NodeId &
id);
56 Node GetParent()
const;
64 std::vector<Node> GetChildren()
const;
70 Node GetChild(
const std::vector<OpcUa::QualifiedName> & path)
const;
71 Node GetChild(
const std::vector<std::string> & path)
const;
75 std::vector<Node> GetProperties()
const;
88 }
catch (std::exception& e) {
116 void SetValue(
const Variant & val)
const;
117 void SetValue(
const DataValue & dval)
const;
122 std::vector<Variant> CallMethod(
NodeId methodId, std::vector<Variant> inputArguments)
const;
123 std::vector<std::vector<Variant>> CallMethods(std::vector<NodeId> methodIds, std::vector<std::vector<Variant>> inputArguments)
const;
126 std::vector<AddNodesResult> AddNodes(std::vector<AddNodesItem> items)
const;
127 std::vector<StatusCode> AddReferences(std::vector<AddReferencesItem> items)
const;
133 Node AddFolder(uint32_t namespaceidx,
const std::string & browseName)
const;
137 Node AddObject(uint32_t namespaceidx,
const std::string & browseName)
const;
147 Node AddMethod(
const NodeId & variableId,
const QualifiedName & browsename, std::function<std::vector<OpcUa::Variant> (
NodeId context, std::vector<OpcUa::Variant> arguments)> method)
const;
148 Node AddMethod(uint32_t namespaceidx,
const std::string & BrowseName, std::function<std::vector<OpcUa::Variant> (
NodeId context, std::vector<OpcUa::Variant> arguments)> method)
const;
149 Node AddMethod(
const std::string & nodeId,
const std::string & browseName, std::function<std::vector<OpcUa::Variant> (
NodeId context, std::vector<OpcUa::Variant> arguments)> method)
const;
void SetDescription(const LocalizedText &value)
LocalizedText GetDescription() const
bool operator!=(Node const &x) const
AttributeWriteMask GetWriteMask() const
OpcUa::Services::SharedPtr GetServices() const
OpcUa::Services::SharedPtr Server
void SetNodeClass(NodeClass value)
ObjectId VariantTypeToDataType(VariantType vt)
std::vector< Node > GetVariables() const
OPC UA Address space part. GNU LGPL.
bool operator==(Node const &x) const
AttributeWriteMask GetUserWriteMask() const
A Node object represent an OPC-UA node. It is high level object intended for developper who want to e...
void SetAccessLevel(VariableAccessLevel value)
std::string ToString(const AttributeId &value)
void SetUserAccessLevel(VariableAccessLevel value)
std::ostream & operator<<(std::ostream &os, const Node &node)
NodeClass GetNodeClass() const
void SetUserWriteMask(AttributeWriteMask value)
VariableAccessLevel GetUserAccessLevel() const
void SetWriteMask(AttributeWriteMask value)
VariableAccessLevel GetAccessLevel() const