C++ Based OPC UA Client/Server/PubSub SDK
1.7.1.476
|
Management object for PublishedDataSets. More...
#include <publisheddataset.h>
Inherits PubSubBase::PubSubObject.
Public Member Functions | |
OpcUa_DataSetMetaDataType * | pDataSetMetaData () const |
Returns a pointer to the DataSetMetaDataType structure of the PublishedDataSet. More... | |
OpcUa_PublishedDataItemsDataType * | pPublishedDataItems () const |
Returns PublishedDataItemsDataType structure if DataSet is based on data items or NULL otherwise. More... | |
UaStatus | publishedVariables (UaPublishedVariableDataTypes &publishedVariables) |
Returns published variables if published DataSet is based on Data Items or bad status otherwise. | |
void | setPublishedVariable (UaPublishedVariableDataTypes &publishedVariables, bool detach=true) |
Sets the subscribed DataSet to target variables. More... | |
OpcUa_PublishedEventsDataType * | pPublishedEvents () const |
Returns PublishedEventsDataType structure if DataSet is based on evetns or NULL otherwise. More... | |
Public Member Functions inherited from PubSubBase::PubSubObject | |
PubSubObject (PubSubResources *pPubSubResources, TransportFacet transportFacet, ConfigurationState configurationState) | |
Creates an instance of the PubSubObject. | |
Public Member Functions inherited from ReferenceCounter | |
ReferenceCounter () | |
construction | |
virtual | ~ReferenceCounter () |
destruction | |
Protected Member Functions | |
PublishedDataSet (PubSubResources *pPubSubResources, OpcUa_PublishedDataSetDataType *pConfigData, OpcUa_UInt32 configIndex) | |
Creates an instance of the PubSubConnection from central configuration structure tree. More... | |
PublishedDataSet (PubSubResources *pPubSubResources, OpcUa_PublishedDataSetDataType *pConfigData) | |
Creates an instance of the PubSubConnection with new structure. More... | |
virtual | ~PublishedDataSet () |
Destroys the PublishedDataSet object. | |
Protected Member Functions inherited from PubSubBase::PubSubObject | |
virtual | ~PubSubObject () |
Destroys the PubSubObject object. | |
Additional Inherited Members | |
Public Types inherited from PubSubBase::PubSubObject | |
enum | PubSubObjectType |
PubSub transport facet reflecting the defined TransportProfileUris. | |
enum | TransportFacet { TransportFacet_None = 0x0, TransportFacet_PubSub_UDP_UADP = 0x11, TransportFacet_PubSub_ETH_UADP = 0x21, TransportFacet_PubSub_AMQP_UADP = 0x31, TransportFacet_PubSub_MQTT_UADP = 0x41 } |
PubSub transport facet reflecting the defined TransportProfileUris. More... | |
enum | ConfigurationState { ConfigurationState_None, ConfigurationState_Deleted, ConfigurationState_InSyncWithStruct, ConfigurationState_New, ConfigurationState_Modified } |
PubSub configuration object state. More... | |
enum | PubSubHeaderLayout { PubSubHeaderLayout_Custom, PubSubHeaderLayout_UADP_PeriodicFixed, PubSubHeaderLayout_UADP_Dynamic } |
PubSub header configuration. More... | |
Management object for PublishedDataSets.
|
protected |
Creates an instance of the PubSubConnection from central configuration structure tree.
[in] | pPubSubResources | Object managing the resources of the PubSub configuration |
[in] | pConfigData | Configuration structure for the PublishedDataSet |
[in] | configIndex | Index of the structure in the list of connections |
|
protected |
Creates an instance of the PubSubConnection with new structure.
[in] | pPubSubResources | Object managing the resources of the PubSub configuration |
[in] | pConfigData | Configuration structure for the PublishedDataSet |
OpcUa_DataSetMetaDataType * PubSubBase::PublishedDataSet::pDataSetMetaData | ( | ) | const |
Returns a pointer to the DataSetMetaDataType structure of the PublishedDataSet.
The access to the method and the returned structure must be locked by the caller by using pMutex().
OpcUa_PublishedDataItemsDataType * PubSubBase::PublishedDataSet::pPublishedDataItems | ( | ) | const |
Returns PublishedDataItemsDataType structure if DataSet is based on data items or NULL otherwise.
The access to the method and the returned structure must be locked by the caller by using pMutex().
OpcUa_PublishedEventsDataType * PubSubBase::PublishedDataSet::pPublishedEvents | ( | ) | const |
Returns PublishedEventsDataType structure if DataSet is based on evetns or NULL otherwise.
The access to the method and the returned structure must be locked by the caller by using pMutex().
void PubSubBase::PublishedDataSet::setPublishedVariable | ( | UaPublishedVariableDataTypes & | publishedVariables, |
bool | detach = true |
||
) |
Sets the subscribed DataSet to target variables.
[in] | publishedVariables | target variables |
[in] | detach | Flag indicating if the passed target variables can be detached |