#include "DCPS/DdsDcps_pch.h"#include "debug.h"#include "Service_Participant.h"#include "BuiltInTopicUtils.h"#include "DataDurabilityCache.h"#include "GuidConverter.h"#include "MonitorFactory.h"#include "ConfigUtils.h"#include "dds/DCPS/transport/framework/TransportRegistry.h"#include "tao/ORB_Core.h"#include "ace/Singleton.h"#include "ace/Arg_Shifter.h"#include "ace/Reactor.h"#include "ace/Select_Reactor.h"#include "ace/Configuration_Import_Export.h"#include "ace/Service_Config.h"#include "ace/Argv_Type_Converter.h"#include "ace/Auto_Ptr.h"#include "ace/Sched_Params.h"#include "ace/Malloc_Allocator.h"#include "RecorderImpl.h"#include "ReplayerImpl.h"#include "StaticDiscovery.h"#include <fstream>#include "Service_Participant.inl"Include dependency graph for Service_Participant.cpp:

Go to the source code of this file.
| #define DDS_DEFAULT_DISCOVERY_METHOD Discovery::DEFAULT_REPO |
Definition at line 142 of file Service_Participant.cpp.
| void @39::set_log_file_name | ( | const char * | fname | ) | [static] |
Definition at line 48 of file Service_Participant.cpp.
Referenced by OpenDDS::DCPS::Service_Participant::load_common_configuration(), and OpenDDS::DCPS::Service_Participant::parse_args().
00049 { 00050 #ifdef OPENDDS_SAFETY_PROFILE 00051 ACE_LOG_MSG->msg_ostream(fopen(fname, "a"), true); 00052 #else 00053 std::ofstream* output_stream = new std::ofstream(fname, ios::app); 00054 if (output_stream->bad()) { 00055 delete output_stream; 00056 } else { 00057 ACE_LOG_MSG->msg_ostream(output_stream, true); 00058 } 00059 #endif 00060 ACE_LOG_MSG->clr_flags(ACE_Log_Msg::STDERR | ACE_Log_Msg::LOGGER); 00061 ACE_LOG_MSG->set_flags(ACE_Log_Msg::OSTREAM); 00062 }
| void @39::set_log_verbose | ( | unsigned long | verbose_logging | ) | [static] |
Definition at line 65 of file Service_Participant.cpp.
Referenced by OpenDDS::DCPS::Service_Participant::load_common_configuration(), and OpenDDS::DCPS::Service_Participant::parse_args().
00066 { 00067 // Code copied from TAO_ORB_Core::init() in 00068 // TAO version 1.6a_p13. 00069 00070 typedef void (ACE_Log_Msg::*PTMF)(u_long); 00071 PTMF flagop = &ACE_Log_Msg::set_flags; 00072 u_long value; 00073 00074 switch (verbose_logging) 00075 { 00076 case 0: 00077 flagop = &ACE_Log_Msg::clr_flags; 00078 value = ACE_Log_Msg::VERBOSE | ACE_Log_Msg::VERBOSE_LITE; 00079 break; 00080 case 1: 00081 value = ACE_Log_Msg::VERBOSE_LITE; break; 00082 default: 00083 value = ACE_Log_Msg::VERBOSE; break; 00084 } 00085 00086 (ACE_LOG_MSG->*flagop)(value); 00087 00088 }
1.4.7