00001 #include "TopicSettings.h"
00002
00003 #include "ace/OS_NS_stdio.h"
00004 #include "ace/Log_Priority.h"
00005 #include "ace/Log_Msg.h"
00006
00007 #include <cstring>
00008
00009 namespace OpenDDS { namespace FaceTSS { namespace config {
00010
00011 int
00012 TopicSettings::set(const char* name, const char* value)
00013 {
00014 int status = 0;
00015 if (!std::strcmp(name, "platform_view_guid")) {
00016 platform_view_guid_ = atoi(value);
00017 } else if (!std::strcmp(name, "max_message_size")) {
00018 max_message_size_ = atoi(value);
00019 } else if (!std::strcmp(name, "type_name")) {
00020 std::strncpy(type_name_, value, sizeof(type_name_));
00021 } else {
00022
00023 ACE_ERROR((LM_ERROR, ACE_TEXT("Don't know of setting %C\n"), name));
00024 status = 1;
00025 }
00026
00027 return status;
00028 }
00029
00030 } } }