5 #ifndef ICE_FACTORYTABLEINIT_H
6 #define ICE_FACTORYTABLEINIT_H
22 static FactoryTableInit factoryTableInitializer;
30 CompactIdInit(
const char*,
int);
39 class 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;
61 class 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;