Public Member Functions | Private Member Functions | List of all members
OpcUa::Model::Object Class Reference

#include <model.h>

Inheritance diagram for OpcUa::Model::Object:
Inheritance graph
[legend]

Public Member Functions

Object CreateObject (const ObjectType &type, const QualifiedName &browseName)
 
Object CreateObject (const NodeId &newNodeId, const ObjectType &nodeType, const QualifiedName &browseName)
 
Object CreateObject (const ObjectType &type, const QualifiedName &browseName, const std::string &displayName)
 
Object CreateObject (const NodeId &newNodeId, const ObjectType &type, const QualifiedName &browseName, const std::string &displayName)
 
Variable CreateVariable (const QualifiedName &browseName, const Variant &value)
 Create a new variable. More...
 
Variable CreateVariable (const NodeId &newVariableId, const QualifiedName &browseName, const Variant &value)
 
Variable CreateVariable (const QualifiedName &browseName, const VariableType &type)
 
Variable CreateVariable (const NodeId &newVariableId, const QualifiedName &browseName, const VariableType &type)
 
Object GetObject (const QualifiedName &name) const
 
Object GetObject (const RelativePath &name) const
 
std::vector< ObjectGetObjects () const
 
ObjectType GetType () const
 
Variable GetVariable (const QualifiedName &name) const
 Get variable of the object by it name. More...
 
Variable GetVariable (const RelativePath &path) const
 Get variable by browse path. More...
 
std::vector< VariableGetVariables () const
 Get variables of the object. More...
 
 Object (NodeId objectId, Services::SharedPtr services)
 
 Object (Object &&object)
 
 Object (const Object &object)
 
- Public Member Functions inherited from OpcUa::Model::Node
QualifiedName GetBrowseName () const
 
LocalizedText GetDisplayName () const
 
NodeId GetId () const
 
std::vector< ReferenceGetReferencies () const
 
Services::SharedPtr GetServices () const
 
 Node (NodeId id, Services::SharedPtr services)
 

Private Member Functions

std::vector< ReferenceDescriptionBrowseObjectsAndVariables (const NodeId &id)
 
std::map< NodeId, std::vector< ReferenceDescription > > CopyObjectsAndVariables (const NodeId &targetNode, const std::vector< ReferenceDescription > &refs)
 
Object CreateObject (const NodeId &newNodeId, const NodeId &parentNode, const NodeId &typeId, const QualifiedName &browseName, const std::string &displayName)
 
AddNodesItem CreateObjectCopy (const NodeId &parentId, const ReferenceDescription &ref)
 
Variable CreateVariable (const NodeId &newNodeId, const NodeId &parentNode, const NodeId &typeId, const QualifiedName &browseName, const std::string &displayName)
 
AddNodesItem CreateVariableCopy (const NodeId &parentId, const ReferenceDescription &ref)
 
NodeId InstantiateType (const NodeId &newNodeId, const NodeId &parentNode, const NodeId &typeId, NodeClass nodeClass, const QualifiedName &browseName, const std::string &displayName)
 
 Object (Services::SharedPtr services)
 

Additional Inherited Members

- Protected Member Functions inherited from OpcUa::Model::Node
 Node (Services::SharedPtr services)
 
- Protected Attributes inherited from OpcUa::Model::Node
QualifiedName BrowseName
 
LocalizedText DisplayName
 
NodeId Id
 
Services::SharedPtr OpcUaServices
 

Detailed Description

Definition at line 181 of file model.h.

Constructor & Destructor Documentation

OpcUa::Model::Object::Object ( NodeId  objectId,
Services::SharedPtr  services 
)

Definition at line 29 of file model_object.cpp.

OpcUa::Model::Object::Object ( Object &&  object)

Definition at line 41 of file model_object.cpp.

OpcUa::Model::Object::Object ( const Object object)

Definition at line 49 of file model_object.cpp.

OpcUa::Model::Object::Object ( Services::SharedPtr  services)
explicitprivate

Definition at line 57 of file model_object.cpp.

Member Function Documentation

std::vector< ReferenceDescription > OpcUa::Model::Object::BrowseObjectsAndVariables ( const NodeId id)
private

Definition at line 190 of file model_object.cpp.

std::map< NodeId, std::vector< ReferenceDescription > > OpcUa::Model::Object::CopyObjectsAndVariables ( const NodeId targetNode,
const std::vector< ReferenceDescription > &  refs 
)
private

Definition at line 208 of file model_object.cpp.

Object OpcUa::Model::Object::CreateObject ( const ObjectType type,
const QualifiedName browseName 
)

Definition at line 121 of file model_object.cpp.

Object OpcUa::Model::Object::CreateObject ( const NodeId newNodeId,
const ObjectType nodeType,
const QualifiedName browseName 
)

Definition at line 126 of file model_object.cpp.

Object OpcUa::Model::Object::CreateObject ( const ObjectType type,
const QualifiedName browseName,
const std::string &  displayName 
)

Definition at line 131 of file model_object.cpp.

Object OpcUa::Model::Object::CreateObject ( const NodeId newNodeId,
const ObjectType type,
const QualifiedName browseName,
const std::string &  displayName 
)
Object OpcUa::Model::Object::CreateObject ( const NodeId newNodeId,
const NodeId parentNode,
const NodeId typeId,
const QualifiedName browseName,
const std::string &  displayName 
)
private

Definition at line 136 of file model_object.cpp.

AddNodesItem OpcUa::Model::Object::CreateObjectCopy ( const NodeId parentId,
const ReferenceDescription ref 
)
private

Definition at line 353 of file model_object.cpp.

Variable OpcUa::Model::Object::CreateVariable ( const QualifiedName browseName,
const Variant value 
)

Create a new variable.

Parameters
browseNamename of new variable.
dataTypetype of the value of new variable.
typeVariable type from which will be taken data type and structure. Will be create new node under current object.
Note
If id of the new variable is not specified then it will be generated.
Returns
new variable.

Definition at line 259 of file model_object.cpp.

Variable OpcUa::Model::Object::CreateVariable ( const NodeId newVariableId,
const QualifiedName browseName,
const Variant value 
)

Definition at line 264 of file model_object.cpp.

Variable OpcUa::Model::Object::CreateVariable ( const QualifiedName browseName,
const VariableType type 
)

Definition at line 299 of file model_object.cpp.

Variable OpcUa::Model::Object::CreateVariable ( const NodeId newVariableId,
const QualifiedName browseName,
const VariableType type 
)

Definition at line 304 of file model_object.cpp.

Variable OpcUa::Model::Object::CreateVariable ( const NodeId newNodeId,
const NodeId parentNode,
const NodeId typeId,
const QualifiedName browseName,
const std::string &  displayName 
)
private
AddNodesItem OpcUa::Model::Object::CreateVariableCopy ( const NodeId parentId,
const ReferenceDescription ref 
)
private

Definition at line 309 of file model_object.cpp.

Object OpcUa::Model::Object::GetObject ( const QualifiedName name) const

Definition at line 111 of file model_object.cpp.

Object OpcUa::Model::Object::GetObject ( const RelativePath name) const

Definition at line 116 of file model_object.cpp.

std::vector< Object > OpcUa::Model::Object::GetObjects ( ) const

Definition at line 106 of file model_object.cpp.

ObjectType OpcUa::Model::Object::GetType ( ) const

Definition at line 62 of file model_object.cpp.

Variable OpcUa::Model::Object::GetVariable ( const QualifiedName name) const

Get variable of the object by it name.

Definition at line 72 of file model_object.cpp.

Variable OpcUa::Model::Object::GetVariable ( const RelativePath path) const

Get variable by browse path.

Definition at line 84 of file model_object.cpp.

std::vector< Variable > OpcUa::Model::Object::GetVariables ( ) const

Get variables of the object.

Definition at line 67 of file model_object.cpp.

NodeId OpcUa::Model::Object::InstantiateType ( const NodeId newNodeId,
const NodeId parentNode,
const NodeId typeId,
NodeClass  nodeClass,
const QualifiedName browseName,
const std::string &  displayName 
)
private

Definition at line 146 of file model_object.cpp.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:10