![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
The QosProvider API allows users to specify the QoS settings of their DCPS entities outside of application code in XML. More...
#include "QosProvider.hpp"
The QosProvider API allows users to specify the QoS settings of their DCPS entities outside of application code in XML.
The QosProvider is delivered as part of the DCPS API of Vortex OpenSplice.
Definition at line 54 of file QosProvider.hpp.
|
explicit |
Constructs a new QosProvider based on the provided uri and profile.
A QosProvider instance that is instantiated with all profiles and/or QoS’s loaded from the location specified by the provided uri.
Initialization of the QosProvider will fail under the following conditions:
Look here for more information.
uri | A Uniform Resource Identifier (URI) that points to the location where the QoS profile needs to be loaded from. Currently only URI’s with a ‘file’ scheme that point to an XML file are supported. If profiles and/or QoS settings are not uniquely identifiable by name within the resource pointed to by uri, a random one of them will be stored. |
profile | The name of the QoS profile within the xml file that serves as the default QoS profile for the get qos operations. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | When multiple thread try to invoke the function concurrently. |
Definition at line 40 of file QosProviderImpl.hpp.
|
explicit |
Constructs a new QosProvider based on the provided uri.
A QosProvider instance that is instantiated with all profiles and/or QoS’s loaded from the location specified by the provided uri.
Initialization of the QosProvider will fail under the following conditions:
Look here for more information.
uri | A Uniform Resource Identifier (URI) that points to the location where the QoS profile needs to be loaded from. Currently only URI’s with a ‘file’ scheme that point to an XML file are supported. If profiles and/or QoS settings are not uniquely identifiable by name within the resource pointed to by uri, a random one of them will be stored. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | When multiple thread try to invoke the function concurrently. |
Definition at line 44 of file QosProviderImpl.hpp.
dds::sub::qos::DataReaderQos dds::core::QosProvider::datareader_qos | ( | ) |
Resolves the DataReaderQos from the uri this QosProvider is associated with.
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no DataReaderQos can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 98 of file QosProviderImpl.hpp.
dds::sub::qos::DataReaderQos dds::core::QosProvider::datareader_qos | ( | const std::string & | id | ) |
Resolves the DataReaderQos identified by the id from the uri this QosProvider is associated with.
id | The fully-qualified name that identifies a QoS within the uri associated with the QosProvider or a name that identifies a QoS within the uri associated with the QosProvider instance relative to its default QoS profile. Id’s starting with ‘::’ are interpreted as fully-qualified names and all others are interpreted as names relative to the default QoS profile of the QosProvider instance. When id is NULL it is interpreted as a non-named QoS within the default QoS profile associated with the QosProvider. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no DataReaderQos that matches the provided id can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 106 of file QosProviderImpl.hpp.
dds::pub::qos::DataWriterQos dds::core::QosProvider::datawriter_qos | ( | ) |
Resolves the DataWriterQos from the uri this QosProvider is associated with.
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no DataWriterQos can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 130 of file QosProviderImpl.hpp.
dds::pub::qos::DataWriterQos dds::core::QosProvider::datawriter_qos | ( | const std::string & | id | ) |
Resolves the DataWriterQos identified by the id from the uri this QosProvider is associated with.
id | The fully-qualified name that identifies a QoS within the uri associated with the QosProvider or a name that identifies a QoS within the uri associated with the QosProvider instance relative to its default QoS profile. Id’s starting with ‘::’ are interpreted as fully-qualified names and all others are interpreted as names relative to the default QoS profile of the QosProvider instance. When id is NULL it is interpreted as a non-named QoS within the default QoS profile associated with the QosProvider. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no DataWriterQos that matches the provided id can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 138 of file QosProviderImpl.hpp.
|
inherited |
Check if the referenced object is nil.
In other words, check if the reference is pointing to a null object.
Definition at line 143 of file ReferenceImpl.hpp.
|
inherited |
Compares two Reference objects and returns true if they are not equal.
Inequality is based on the referential inequality of the object being pointed to.
ref | the other Reference object |
Definition at line 100 of file ReferenceImpl.hpp.
|
inherited |
Special operator!= used to check if this reference object does not equal the dds::core::null reference.
The non-null-check can be done like this:
Definition at line 157 of file ReferenceImpl.hpp.
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Reference and on all its subclasses as follows:
Definition at line 180 of file ReferenceImpl.hpp.
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Reference and on all its subclasses as follows:
Definition at line 188 of file ReferenceImpl.hpp.
|
inherited |
Compares two Reference objects and returns true if they are equal.
Equality is based on the referential equality of the object being pointed.
ref | the other Reference object |
Definition at line 83 of file ReferenceImpl.hpp.
|
inherited |
Special operator== used to check if this reference object equals the dds::core::null reference.
The null-check can be done like this:
Definition at line 150 of file ReferenceImpl.hpp.
dds::domain::qos::DomainParticipantQos dds::core::QosProvider::participant_qos | ( | ) |
Resolves the DomainParticipantQos from the uri this QosProvider is associated with.
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no DomainParticipantQos can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 49 of file QosProviderImpl.hpp.
dds::domain::qos::DomainParticipantQos dds::core::QosProvider::participant_qos | ( | const std::string & | id | ) |
Resolves the DomainParticipantQos identified by the id from the uri this QosProvider is associated with.
id | The fully-qualified name that identifies a QoS within the uri associated with the QosProvider or a name that identifies a QoS within the uri associated with the QosProvider instance relative to its default QoS profile. Id’s starting with ‘::’ are interpreted as fully-qualified names and all others are interpreted as names relative to the default QoS profile of the QosProvider instance. When id is NULL it is interpreted as a non-named QoS within the default QoS profile associated with the QosProvider. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no DomainParticipantQos that matches the provided id can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 57 of file QosProviderImpl.hpp.
dds::pub::qos::PublisherQos dds::core::QosProvider::publisher_qos | ( | ) |
Resolves the PublisherQos from the uri this QosProvider is associated with.
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no PublisherQos can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 114 of file QosProviderImpl.hpp.
dds::pub::qos::PublisherQos dds::core::QosProvider::publisher_qos | ( | const std::string & | id | ) |
Resolves the PublisherQos identified by the id from the uri this QosProvider is associated with.
id | The fully-qualified name that identifies a QoS within the uri associated with the QosProvider or a name that identifies a QoS within the uri associated with the QosProvider instance relative to its default QoS profile. Id’s starting with ‘::’ are interpreted as fully-qualified names and all others are interpreted as names relative to the default QoS profile of the QosProvider instance. When id is NULL it is interpreted as a non-named QoS within the default QoS profile associated with the QosProvider. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no PublisherQos that matches the provided id can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 122 of file QosProviderImpl.hpp.
dds::sub::qos::SubscriberQos dds::core::QosProvider::subscriber_qos | ( | ) |
Resolves the SubscriberQos from the uri this QosProvider is associated with.
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no SubscriberQos can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 82 of file QosProviderImpl.hpp.
dds::sub::qos::SubscriberQos dds::core::QosProvider::subscriber_qos | ( | const std::string & | id | ) |
Resolves the SubscriberQos identified by the id from the uri this QosProvider is associated with.
id | The fully-qualified name that identifies a QoS within the uri associated with the QosProvider or a name that identifies a QoS within the uri associated with the QosProvider instance relative to its default QoS profile. Id’s starting with ‘::’ are interpreted as fully-qualified names and all others are interpreted as names relative to the default QoS profile of the QosProvider instance. When id is NULL it is interpreted as a non-named QoS within the default QoS profile associated with the QosProvider. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no SubscriberQos that matches the provided id can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 90 of file QosProviderImpl.hpp.
dds::topic::qos::TopicQos dds::core::QosProvider::topic_qos | ( | ) |
Resolves the TopicQos from the uri this QosProvider is associated with.
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no TopicQos can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 65 of file QosProviderImpl.hpp.
dds::topic::qos::TopicQos dds::core::QosProvider::topic_qos | ( | const std::string & | id | ) |
Resolves the TopicQos identified by the id from the uri this QosProvider is associated with.
id | The fully-qualified name that identifies a QoS within the uri associated with the QosProvider or a name that identifies a QoS within the uri associated with the QosProvider instance relative to its default QoS profile. Id’s starting with ‘::’ are interpreted as fully-qualified names and all others are interpreted as names relative to the default QoS profile of the QosProvider instance. When id is NULL it is interpreted as a non-named QoS within the default QoS profile associated with the QosProvider. |
dds::core::Error | An internal error has occurred. |
dds::core::PreconditionNotMetError | If no TopicQos that matches the provided id can be found within the uri associated with the QosProvider. |
dds::core::OutOfResourcesError | The Data Distribution Service ran out of resources to complete this operation. |
Definition at line 73 of file QosProviderImpl.hpp.