#include <ShmemLoader.h>
Public Member Functions | |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
Definition at line 20 of file ShmemLoader.h.
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 }