#include <ISmbiosXml.h>
Inheritance diagram for SmbiosXmlFactory:
Public Types | |
enum | { AutoDetectMode, UnitTestMode } |
enum | { defaultMode = AutoDetectMode } |
Public Member Functions | |
virtual | ~SmbiosXmlFactory () throw () |
virtual ISmbiosTable * | getSingleton ()=0 |
Recommended way to get an ISmbiosTable object. | |
virtual ISmbiosTable * | makeNew ()=0 |
Create a new ISmbiosTable object that the caller must delete. (NOT RECOMMENDED). | |
virtual void | setParameter (const std::string name, const std::string value)=0 |
virtual void | setParameter (const std::string name, const u32 value)=0 |
virtual void | setMode (const int mode)=0 |
virtual void | reset ()=0 |
virtual std::string | getParameterString (const std::string name) const=0 |
virtual u32 | getParameterNum (const std::string name) const=0 |
virtual int | getMode () const=0 |
Static Public Member Functions | |
static SmbiosFactory * | getFactory () |
Create a factory object that you can use to create ISmbiosTable objects. |
Definition at line 36 of file ISmbiosXml.h.
anonymous enum [inherited] |
anonymous enum [inherited] |
~SmbiosXmlFactory | ( | ) | throw () [virtual] |
Definition at line 54 of file SmbiosXml.cpp.
SmbiosFactory * getFactory | ( | ) | [static] |
Create a factory object that you can use to create ISmbiosTable objects.
Factory entry point: This is the method to call to get a handle to the SmbiosFactory. The SmbiosFactory is the recommended method to create ISmbiosTable objects.
The getSingleton() is the recommended method to call to create tables. You need not delete the pointer returned by this method, it will be deleted by the factory when it is reset() or destructed.
Reimplemented from SmbiosFactory.
Definition at line 65 of file SmbiosXml.cpp.
References TFactory< SmbiosFactory >::getFactory().
Referenced by testStandalone::setUp(), testRbu::setUp(), and testPlatform::setUp().
virtual ISmbiosTable* getSingleton | ( | ) | [pure virtual, inherited] |
Recommended way to get an ISmbiosTable object.
getSingleton() returns a pointer to a Singleton ISmbiosTable object. The user need not delete the pointer returned by this method. The singleton will be deleted when the factory is destructed or the reset() method is called
Referenced by couldBeBayonet(), smbios::getBits_FromItem(), smbios::getData_UsingXml(), getIdByteFromOEMItem(), getIdByteFromRevItem(), TokenTableFactoryImpl::getSingleton(), smbios::getString_FromItem(), getStringFromTable(), and rbu::getSupportedPacketType().
virtual ISmbiosTable* makeNew | ( | ) | [pure virtual, inherited] |
Create a new ISmbiosTable object that the caller must delete. (NOT RECOMMENDED).
The makeNew() method returns a pointer to a newly allocated ISmbiosTable object. The caller is responsible for deleting this reference when it is finished with it. It is recommended that the caller store the pointer in an std::auto_ptr<ISmbiosTable>.
The getSingleton() method is preferred over this method.
Referenced by testPlatform::testConstructionOffset2(), and testStandalone::testNonXml().
virtual void setParameter | ( | const std::string | name, | |
const std::string | value | |||
) | [pure virtual, inherited] |
Implemented in TFactory< factory::IFactory >.
Referenced by testPlatform::testConstructionOffset2(), and testStandalone::testMemoryBadFiles().
virtual void setParameter | ( | const std::string | name, | |
const u32 | value | |||
) | [pure virtual, inherited] |
Implemented in TFactory< factory::IFactory >.
virtual void setMode | ( | const int | mode | ) | [pure virtual, inherited] |
Implemented in TFactory< factory::IFactory >.
virtual void reset | ( | ) | [pure virtual, inherited] |
virtual std::string getParameterString | ( | const std::string | name | ) | const [pure virtual, inherited] |
Implemented in TFactory< factory::IFactory >.
virtual u32 getParameterNum | ( | const std::string | name | ) | const [pure virtual, inherited] |
Implemented in TFactory< factory::IFactory >.
virtual int getMode | ( | ) | const [pure virtual, inherited] |
Implemented in TFactory< factory::IFactory >.