00001 /* 00002 * 00003 * 00004 * Distributed under the OpenDDS License. 00005 * See: http://www.opendds.org/license.html 00006 */ 00007 00008 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/ 00009 00010 #include "dds/DdsDcpsGuidC.h" 00011 00012 #include "InstanceHandle.h" 00013 00014 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 00015 00016 namespace OpenDDS { 00017 namespace DCPS { 00018 00019 InstanceHandleGenerator::InstanceHandleGenerator(long begin) 00020 : sequence_(begin) 00021 { 00022 } 00023 00024 InstanceHandleGenerator::~InstanceHandleGenerator() 00025 { 00026 } 00027 00028 DDS::InstanceHandle_t 00029 InstanceHandleGenerator::next() 00030 { 00031 return ++sequence_; 00032 } 00033 00034 } // namespace DCPS 00035 } // namespace OpenDDS 00036 00037 OPENDDS_END_VERSIONED_NAMESPACE_DECL