#include <SmbiosWorkaroundImpl.h>
Inheritance diagram for SmbiosWorkaroundFactory:
Public Types | |
enum | { AutoDetectMode, UnitTestMode } |
enum | { defaultMode = AutoDetectMode } |
Public Methods | |
SmbiosWorkaroundFactory () | |
Use getFactory() to get a factory. | |
virtual | ~SmbiosWorkaroundFactory () throw () |
virtual SmbiosWorkaroundTable * | makeNew (const ISmbiosTable *table) |
Create a new SmbiosWorkaroundTable object that the caller must delete. | |
virtual void | reset () |
virtual void | setParameter (const std::string name, const std::string value) |
virtual void | setParameter (const std::string name, const u32 value) |
virtual void | setMode (const int newMode) |
virtual std::string | getParameterString (const std::string name) const |
virtual u32 | getParameterNum (const std::string name) const |
virtual int | getMode () const |
Static Public Methods | |
factory::TFactory< smbios::SmbiosWorkaroundFactory > * | getFactory () |
Create a factory object that you can use to create SmbiosWorkaroundTable objects. | |
TFactory< factory::IFactory > * | getFactory (R *foo=0) |
Protected Attributes | |
int | mode |
std::map< std::string, std::string > | strParamMap |
std::map< std::string, u32 > | numParamMap |
Static Protected Attributes | |
SmbiosWorkaroundTable * | _tableInstance = 0 |
TFactory< factory::IFactory > * | _instance |
As such, there is no ABI guarantee, so this class doesn't follow the XXXXFactory | XXXXFactoryImpl pattern that the rest of the Factories follow. That makes things a bit simpler in implementation.
There is no ISmbiosWorkaroundTable for the same reason as above.
General Theory of Operation: The SmbiosTable object contains a buffer of the raw SMBIOS table, as read from memory. As such, this is never changed and will always reflect bit-for-bit what is in memory.
As each SmbiosItem is created, the ->fixup() method is called, which alters the individual items. It will alter the actual item buffer that the item holds so that it has correct data.
Definition at line 52 of file SmbiosWorkaroundImpl.h.
|
Definition at line 57 of file IFactory.h. |
|
Definition at line 58 of file IFactory.h. |
|
Use getFactory() to get a factory.
Definition at line 56 of file SmbiosWorkaroundImpl.h. |
|
Definition at line 46 of file SmbiosWorkaround.cpp. |
|
Definition at line 53 of file FactoryImpl2.h. References TFactory::_instance, and UNREFERENCED_PARAMETER. |
|
Create a factory object that you can use to create SmbiosWorkaroundTable objects. Factory entry point: This is the method to call to get a handle to the SmbiosWorkaroundFactory. The SmbiosWorkaroundFactory is the recommended method to create SmbiosWorkaroundTable objects.
Definition at line 38 of file SmbiosWorkaround.cpp. References TFactory::getFactory(). |
|
Implements IFactory. Definition at line 82 of file FactoryImpl2.h. References TFactory::mode. |
|
Implements IFactory. Definition at line 81 of file FactoryImpl2.h. References TFactory::numParamMap, and u32. |
|
Implements IFactory. Definition at line 80 of file FactoryImpl2.h. References TFactory::strParamMap. |
|
Create a new SmbiosWorkaroundTable object that the caller must delete. The makeNew() method returns a pointer to a newly allocated SmbiosWorkaroundTable 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<SmbiosWorkaroundTable>.
Definition at line 56 of file SmbiosWorkaround.cpp. References _X, smbios::BIOS_Information, smbios::Dell_Revisions_and_IDs, smbios::getString_FromItem(), smbios::getU16_FromItem(), smbios::getU8_FromItem(), smbios::numSystemWorkarounds, SystemWorkaround::system, SystemAffected::systemId, smbios::workaroundMasterList, and SystemWorkaround::workarounds. |
|
Implements IFactory. Definition at line 63 of file FactoryImpl2.h. References TFactory::_instance. |
|
Implements IFactory. Definition at line 77 of file FactoryImpl2.h. References TFactory::mode. |
|
Implements IFactory. Definition at line 76 of file FactoryImpl2.h. References TFactory::numParamMap, and u32. |
|
Implements IFactory. Definition at line 75 of file FactoryImpl2.h. References TFactory::strParamMap. |
|
Definition at line 92 of file FactoryImpl2.h. |
|
Definition at line 36 of file SmbiosWorkaround.cpp. |
|
Definition at line 89 of file FactoryImpl2.h. |
|
Definition at line 91 of file FactoryImpl2.h. |
|
Definition at line 90 of file FactoryImpl2.h. |