Class managing PubSub resources like stack and configurations.
More...
#include <pubsubresources.h>
Inherits ReferenceCounter, and UaThread.
Class managing PubSub resources like stack and configurations.
UaStatus PubSubBase::PubSubResources::loadConfiguration |
( |
const UaString & |
sConfigurationFile, |
|
|
bool |
initializeStack |
|
) |
| |
Loads the PubSub configuration from a OPC UA Binary encoded file.
- Parameters
-
[in] | sConfigurationFile | Path and name of PubSub configuration file |
[in] | initializeStack | Flag indicating if the PubSub stack should be initialized with the configuration |
Map the namespace indices of the configuration from the existing namespace table to the passed namespace table.
The index into the array is referred to as NamespaceIndex. The NamespaceIndex is used in NodeIds and QualifiedNames, rather than the longer namespace URI. NamespaceIndex 0 is reserved for the OPC UA namespace and it is not included in this array.
- Parameters
-
[in] | newNamespaceTable | New namespace array for the namespace table |
void PubSubBase::PubSubResources::run |
( |
| ) |
|
|
protectedvirtual |
Main function of the thread.
Must be implemented by the derived class to execute the functionality
Implements UaThread.
UaStatus PubSubBase::PubSubResources::saveConfiguration |
( |
const UaString & |
sConfigurationFile | ) |
|
Saves the PubSub configuration to a OPC UA Binary encoded file.
- Parameters
-
[in] | sConfigurationFile | Path and name of PubSub configuration file |
Saves the PubSub configuration to a binary blob.
- Parameters
-
UaStatus PubSubBase::PubSubResources::saveConfiguration |
( |
const UaString & |
sConfigurationFile, |
|
|
OpcUa_PubSubConfigurationDataType * |
pConfiguration, |
|
|
const UaStringArray & |
namespaces |
|
) |
| |
|
static |
Saves the PubSub configuration to a OPC UA Binary encoded file.
- Parameters
-
[in] | sConfigurationFile | Path and name of PubSub configuration file |
[in] | pConfiguration | Configuration structure to save |
[in] | namespaces | Namespaces for the configuration structure to save |
UaStatus PubSubBase::PubSubResources::saveConfiguration |
( |
UaByteString & |
bsConfiguration, |
|
|
OpcUa_PubSubConfigurationDataType * |
pConfiguration, |
|
|
const UaStringArray & |
namespaces |
|
) |
| |
|
static |
Saves the PubSub configuration to a binary blob.
- Parameters
-
[out] | bsConfiguration | The UaByteString to store the config to |
[in] | pConfiguration | Configuration structure to save |
[in] | namespaces | Namespaces for the configuration structure to save |
void PubSubBase::PubSubResources::setNamespaces |
( |
const UaStringArray & |
namespaces | ) |
|
Sets the namespaces used by the configuration.
The index into the array is referred to as NamespaceIndex. The NamespaceIndex is used in NodeIds and QualifiedNames, rather than the longer namespace URI. NamespaceIndex 0 is reserved for the OPC UA namespace and it is not included in this array.
- Parameters
-
[in] | namespaces | New namespace array for the namespace table |
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uabase/pubsubbasecpp/pubsubresources.h
- D:/work/uasdkcpp/src/uabase/pubsubbasecpp/pubsubresources.cpp