OpenDDS::DCPS::ShmemLoader Class Reference

#include <ShmemLoader.h>

List of all members.

Public Member Functions

virtual int init (int argc, ACE_TCHAR *argv[])


Detailed Description

Definition at line 20 of file ShmemLoader.h.


Member Function Documentation

int OpenDDS::DCPS::ShmemLoader::init ( int  argc,
ACE_TCHAR *  argv[] 
) [virtual]

Definition at line 32 of file ShmemLoader.cpp.

References OpenDDS::DCPS::TransportRegistry::register_type(), and TheTransportRegistry.

00033 {
00034   static bool initialized(false);
00035 
00036   if (initialized) return 0;  // already initialized
00037 
00038   TransportRegistry* registry = TheTransportRegistry;
00039   registry->register_type(new ShmemType);
00040 
00041   //FUTURE: when we're ready, add a ShmemInst to the default config, like so:
00042   /*
00043   TransportInst_rch default_inst =
00044     registry->create_inst(TransportRegistry::DEFAULT_INST_PREFIX + "0200_SHMEM",
00045                           UDP_NAME);
00046   registry->get_config(TransportRegistry::DEFAULT_CONFIG_NAME)
00047     ->sorted_insert(default_inst);
00048   */
00049   initialized = true;
00050 
00051   return 0;
00052 }


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:37 2016 for OpenDDS by  doxygen 1.4.7