OpenDDS::FaceTSS::config::TopicSettings Class Reference

#include <TopicSettings.h>

List of all members.

Public Member Functions

int set (const char *name, const char *value)

Public Attributes

char type_name_ [TYPE_NAME_LEN]
FACE::MESSAGE_TYPE_GUID platform_view_guid_
FACE::MESSAGE_SIZE_TYPE max_message_size_

Static Public Attributes

static const int TYPE_NAME_LEN = 128

Detailed Description

Definition at line 13 of file TopicSettings.h.


Member Function Documentation

int OpenDDS::FaceTSS::config::TopicSettings::set ( const char *  name,
const char *  value 
)

Definition at line 14 of file TopicSettings.cpp.

References ACE_TEXT(), atoi(), LM_ERROR, max_message_size_, platform_view_guid_, status, type_name_, and TYPE_NAME_LEN.

Referenced by OpenDDS::FaceTSS::config::Parser::parse_topic().

00015 {
00016   int status = 0;
00017   if (!std::strcmp(name, "platform_view_guid")) {
00018     platform_view_guid_ = atoi(value);
00019   } else if (!std::strcmp(name, "max_message_size")) {
00020     max_message_size_ = atoi(value);
00021   } else if (!std::strcmp(name, "type_name")) {
00022     // Guarantee that value will fit in type_name_ and still be null terminated
00023     // type_name_ is sized to TYPE_NAME_LEN
00024     if (std::strlen(value) >= sizeof(type_name_)) {
00025       ACE_ERROR((LM_ERROR, ACE_TEXT("Type name %C exceeds allowable length,"
00026         "must be < %d \n"), value, TYPE_NAME_LEN));
00027       status = 1;
00028     } else {
00029       std::strncpy(type_name_, value, sizeof(type_name_));
00030     }
00031   } else {
00032     // no match
00033     ACE_ERROR((LM_ERROR, ACE_TEXT("Don't know of setting %C\n"), name));
00034     status = 1;
00035   }
00036 
00037   return status;
00038 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 21 of file TopicSettings.h.

Referenced by FACE::TS::Create_Connection(), and set().

Definition at line 20 of file TopicSettings.h.

Referenced by FACE::TS::Create_Connection(), and set().

Definition at line 19 of file TopicSettings.h.

Referenced by FACE::TS::Create_Connection(), and set().

Definition at line 15 of file TopicSettings.h.

Referenced by set().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1