ConnectionSettings.h
Go to the documentation of this file.00001 #ifndef OPENDDS_CONNECTION_SETTINGS_H
00002 #define OPENDDS_CONNECTION_SETTINGS_H
00003
00004 #include "FACE/TS_common.hpp"
00005 #include "dds/DCPS/PoolAllocator.h"
00006 #include "dds/Versioned_Namespace.h"
00007 #include "FACE/OpenDDS_FACE_Export.h"
00008
00009 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00010
00011 namespace OpenDDS { namespace FaceTSS { namespace config {
00012
00013 class OpenDDS_FACE_Export ConnectionSettings {
00014 public:
00015 static const size_t ALLOWABLE_NAME_LEN = 64;
00016
00017 ConnectionSettings();
00018
00019 int set(const char* name, const char* value);
00020
00021 const char* datawriter_qos_name() const;
00022 const char* datareader_qos_name() const;
00023 const char* publisher_qos_name() const;
00024 const char* subscriber_qos_name() const;
00025 const char* config_name() const;
00026
00027 bool datawriter_qos_set() const;
00028 bool datareader_qos_set() const;
00029 bool publisher_qos_set() const;
00030 bool subscriber_qos_set() const;
00031 bool config_set() const;
00032
00033 char topic_name_[ALLOWABLE_NAME_LEN];
00034 char datawriter_qos_name_[ALLOWABLE_NAME_LEN];
00035 char datareader_qos_name_[ALLOWABLE_NAME_LEN];
00036 char publisher_qos_name_[ALLOWABLE_NAME_LEN];
00037 char subscriber_qos_name_[ALLOWABLE_NAME_LEN];
00038 FACE::CONNECTION_ID_TYPE connection_id_;
00039 FACE::CONNECTION_DIRECTION_TYPE direction_;
00040 int domain_id_;
00041 int participant_id_;
00042 char config_name_[ALLOWABLE_NAME_LEN];
00043 };
00044
00045 typedef OPENDDS_MAP(OPENDDS_STRING, ConnectionSettings) ConnectionMap;
00046
00047 } } }
00048
00049 OPENDDS_END_VERSIONED_NAMESPACE_DECL
00050
00051 #endif