19 #define LIBSMBIOS_SOURCE
36 virtual std::auto_ptr<IDellCallingInterfaceSmi> makeNew(
u8 type);
40 SmiFactory::~SmiFactory() throw()
42 SmiFactory::SmiFactory()
50 return SmiFactoryImpl::getFactory(reinterpret_cast<SmiFactoryImpl *>(0));
53 std::auto_ptr<IDellCallingInterfaceSmi> SmiFactoryImpl::makeNew(
u8 type )
58 if (mode == AutoDetectMode )
61 else if (mode == UnitTestMode)
72 case DELL_CALLING_INTERFACE_SMI_RAW:
76 case DELL_CALLING_INTERFACE_SMI:
85 throw SmiExceptionImpl(
_(
"Could not automatically setup up magic io"));
90 throw InvalidSmiModeImpl(
_(
"Unknown smi factory mode requested"));
95 throw InvalidSmiModeImpl(
_(
"Could not allocate SMI object"));
97 std::auto_ptr<IDellCallingInterfaceSmi> foo(ret);