5.2.2.1 C++ Mapping

The following code snippet shows the C++ class (static) methods. For more information about these methods, see the sections TP::register_factory() and TP::unregister_factory().

#include <TP.h>
static void TP::register_factory(
CORBA::Object_ptr factory_or, const char* factory_id);
static void TP::unregister_factory (
CORBA::Object_ptr factory_or, const char* factory_id);

The TP.h header file contains the two method declarations. This file must to be included in any server application that wants to use these methods.

A server application generally includes this header file within the application file that contains the methods for application server initialization and release.