#include "dds/DCPS/Definitions.h"
#include "dds/DCPS/Cached_Allocator_With_Overflow_T.h"
#include "dds/DCPS/debug.h"
#include "ace/Basic_Types.h"
#include "ace/CDR_Base.h"
#include "TransportDebug.h"
Include dependency graph for TransportDefs.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
#define GET_CONFIG_DOUBLE_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
Value:
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ") \ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = ACE_OS::strtod (stringvalue.c_str (), 0); \ } \ }
Definition at line 121 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::TcpInst::load().
#define GET_CONFIG_STRING_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
Value:
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ") \ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = ACE_TEXT_ALWAYS_CHAR(stringvalue.c_str()); \ } \ }
Definition at line 63 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::TcpInst::load(), OpenDDS::DCPS::RtpsUdpInst::load(), OpenDDS::DCPS::MulticastInst::load(), and OpenDDS::DCPS::Service_Participant::load_common_configuration().
#define GET_CONFIG_TIME_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
Value:
{ \ long tv = -1; \ GET_CONFIG_VALUE(CF, SECT, KEY, tv, long); \ if (tv != -1) VALUE.msec(tv); \ }
Definition at line 153 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::RtpsUdpInst::load(), and OpenDDS::DCPS::MulticastInst::load().
#define GET_CONFIG_TSTRING_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE | ) |
Value:
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ") \ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = stringvalue; \ } \ }
Definition at line 92 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::UdpInst::load(), OpenDDS::DCPS::RtpsUdpInst::load(), OpenDDS::DCPS::MulticastInst::load(), and OpenDDS::DCPS::Service_Participant::load_common_configuration().
#define GET_CONFIG_VALUE | ( | CF, | |||
SECT, | |||||
KEY, | |||||
VALUE, | |||||
TYPE | ) |
Value:
{ \ ACE_TString stringvalue; \ if (CF.get_string_value (SECT, KEY, stringvalue) == -1) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_NOTICE, \ ACE_TEXT ("(%P|%t) NOTICE: \"%s\" is not defined in config ")\ ACE_TEXT ("file - using code default.\n"), \ KEY)); \ } \ } \ else if (stringvalue == ACE_TEXT("")) \ { \ if (OpenDDS::DCPS::Transport_debug_level > 0) \ { \ ACE_DEBUG ((LM_WARNING, \ ACE_TEXT ("(%P|%t) WARNING: \"%s\" is defined in config ") \ ACE_TEXT ("file, but is missing value - using code default.\n"), \ KEY)); \ } \ } \ else \ { \ VALUE = static_cast<TYPE>(ACE_OS::atoi (stringvalue.c_str ())); \ } \ }
Definition at line 32 of file TransportDefs.h.
Referenced by OpenDDS::DCPS::UdpInst::load(), OpenDDS::DCPS::TransportInst::load(), OpenDDS::DCPS::TcpInst::load(), OpenDDS::DCPS::ShmemInst::load(), OpenDDS::DCPS::RtpsUdpInst::load(), OpenDDS::DCPS::MulticastInst::load(), and OpenDDS::DCPS::Service_Participant::load_common_configuration().
#define RECEIVE_SYNCH ACE_SYNCH_NULL_MUTEX |
Guard the allocations for the underlying memory management of the receive processing with the following:
Definition at line 27 of file TransportDefs.h.