5#ifndef ICE_FACTORYTABLEINIT_H
6#define ICE_FACTORYTABLEINIT_H
22static FactoryTableInit factoryTableInitializer;
30 CompactIdInit(
const char*,
int);
39class DefaultUserExceptionFactoryInit
43 DefaultUserExceptionFactoryInit(
const char* tId) : typeId(tId)
45#ifdef ICE_CPP11_MAPPING
46 factoryTable->addExceptionFactory(typeId, defaultUserExceptionFactory<E>);
48 factoryTable->addExceptionFactory(typeId,
new DefaultUserExceptionFactory<E>(typeId));
52 ~DefaultUserExceptionFactoryInit()
54 factoryTable->removeExceptionFactory(typeId);
57 const ::std::string typeId;
61class DefaultValueFactoryInit
65 DefaultValueFactoryInit(
const char* tId) : typeId(tId)
67#ifdef ICE_CPP11_MAPPING
68 factoryTable->addValueFactory(typeId, defaultValueFactory<O>);
70 factoryTable->addValueFactory(typeId,
new DefaultValueFactory<O>(typeId));
74 ~DefaultValueFactoryInit()
76 factoryTable->removeValueFactory(typeId);
79 const ::std::string typeId;
#define ICE_API
Definition Config.h:197
#define ICE_GLOBAL_VAR_SUFFIX
Definition Config.h:185