BaseMessageTypes.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef RTPS_BASEMESSAGETYPES_H
00009 #define RTPS_BASEMESSAGETYPES_H
00010 
00011 #include "RtpsCoreC.h"
00012 #include "dds/DCPS/GuidUtils.h"
00013 
00014 namespace OpenDDS {
00015   namespace RTPS {
00016 
00017     const Time_t TIME_ZERO     = { 0, 0 };
00018     const Time_t TIME_INVALID  = { -1, 0xffffffff };
00019     const Time_t TIME_INFINITE = { 0x7fffffff, 0xffffffff };
00020 
00021     // conversion factor from nanoseconds to NTP fractional (2^-32) seconds
00022     const double NANOS_TO_RTPS_FRACS = 4.294967296;
00023 
00024     const VendorId_t VENDORID_UNKNOWN = { { 0 } };
00025     const VendorId_t VENDORID_OPENDDS =
00026       { { OpenDDS::DCPS::VENDORID_OCI[0], OpenDDS::DCPS::VENDORID_OCI[1] } };
00027     // --> see http://portals.omg.org/dds/content/page/dds-rtps-vendor-ids
00028 
00029     using OpenDDS::DCPS::GUIDPREFIX_UNKNOWN;
00030     using OpenDDS::DCPS::GUID_UNKNOWN;
00031 
00032     using OpenDDS::DCPS::ENTITYID_UNKNOWN;
00033     using OpenDDS::DCPS::ENTITYID_PARTICIPANT;
00034     using OpenDDS::DCPS::ENTITYID_SEDP_BUILTIN_TOPIC_WRITER;
00035     using OpenDDS::DCPS::ENTITYID_SEDP_BUILTIN_TOPIC_READER;
00036     using OpenDDS::DCPS::ENTITYID_SEDP_BUILTIN_PUBLICATIONS_WRITER;
00037     using OpenDDS::DCPS::ENTITYID_SEDP_BUILTIN_PUBLICATIONS_READER;
00038     using OpenDDS::DCPS::ENTITYID_SEDP_BUILTIN_SUBSCRIPTIONS_WRITER;
00039     using OpenDDS::DCPS::ENTITYID_SEDP_BUILTIN_SUBSCRIPTIONS_READER;
00040     using OpenDDS::DCPS::ENTITYID_SPDP_BUILTIN_PARTICIPANT_WRITER;
00041     using OpenDDS::DCPS::ENTITYID_SPDP_BUILTIN_PARTICIPANT_READER;
00042     using OpenDDS::DCPS::ENTITYID_P2P_BUILTIN_PARTICIPANT_MESSAGE_WRITER;
00043     using OpenDDS::DCPS::ENTITYID_P2P_BUILTIN_PARTICIPANT_MESSAGE_READER;
00044 
00045     const SequenceNumber_t SEQUENCENUMBER_UNKNOWN = { -1, 0 };
00046 
00047     const OpenDDS::DCPS::Locator_t LOCATOR_INVALID =
00048       { LOCATOR_KIND_INVALID, LOCATOR_PORT_INVALID, { 0 } };
00049     const OpenDDS::DCPS::OctetArray16 LOCATOR_ADDRESS_INVALID = { 0 };
00050 
00051     const LocatorUDPv4_t LOCATORUDPv4_INVALID = { 0, 0 };
00052 
00053     const ProtocolVersion_t PROTOCOLVERSION_1_0 = { 1, 0 };
00054     const ProtocolVersion_t PROTOCOLVERSION_1_1 = { 1, 1 };
00055     const ProtocolVersion_t PROTOCOLVERSION_2_0 = { 2, 0 };
00056     const ProtocolVersion_t PROTOCOLVERSION_2_1 = { 2, 1 };
00057     const ProtocolVersion_t PROTOCOLVERSION_2_2 = { 2, 2 };
00058     const ProtocolVersion_t PROTOCOLVERSION = PROTOCOLVERSION_2_2;
00059   }
00060 }
00061 
00062 #endif /* RTPS_BASEMESSAGETYPES_H */

Generated on Fri Feb 12 20:05:18 2016 for OpenDDS by  doxygen 1.4.7