#include <TokenImpl.h>


Public Member Functions | |
| CmosTokenD5 (const smbios::ISmbiosItem &item, std::vector< CmosRWChecksumObserver > &initChecksumList) | |
| virtual | ~CmosTokenD5 () throw () |
| u32 | getType () const |
| virtual bool | isActive () const |
| virtual void | activate () const |
| virtual bool | isString () const |
| virtual bool | isBool () const |
| virtual unsigned int | getStringLength () const |
| virtual const std::string | getString (u8 *byteArray=0, unsigned int size=0) const |
| virtual void | setString (const u8 *byteArray, size_t size) const |
| virtual const ISmbiosItem & | getItemRef () const |
| virtual void | getCMOSDetails (u16 *indexPort, u16 *dataPort, u8 *location) const |
| virtual bool | tryPassword (std::string pw) const |
| virtual std::string | getTokenClass () const |
| virtual u32 | getValueFormat () const |
| virtual std::ostream & | streamify (std::ostream &cout) const |
| virtual std::string | getTokenClass () const =0 |
| virtual u32 | getType () const =0 |
| Returns the Token Type, per Dell SMBIOS Spec. | |
| virtual bool | isActive () const =0 |
| Returns true if bitfield-type token is set. | |
| virtual void | activate () const =0 |
| Sets the bitmask for bitfield-type tokens. | |
| virtual bool | isString () const =0 |
| Returns true for string-type tokens. | |
| virtual bool | isBool () const =0 |
| Returns true for bool-type tokens. | |
| virtual unsigned int | getStringLength () const =0 |
| Returns length for string-type tokens. | |
| virtual const std::string | getString (u8 *byteArray=0, unsigned int size=0) const =0 |
| returns std:string and raw value in first parameter. | |
| virtual void | setString (const u8 *byteArray, size_t size) const =0 |
| virtual const ISmbiosItem & | getItemRef () const =0 |
| virtual std::ostream & | streamify (std::ostream &cout) const =0 |
| virtual void | getCMOSDetails (u16 *indexPort, u16 *dataPort, u8 *location) const =0 |
| returns details about CMOS index/data ports and cmos location. | |
Protected Member Functions | |
| CmosTokenD5 () | |
| CmosTokenD5 (const CmosTokenD5 &) | |
| void | operator= (const CmosTokenD5 &) |
| virtual void | addChecksumObserver () const |
Protected Attributes | |
| dell_protected_value_1_structure | structure |
| std::auto_ptr< const smbios::ISmbiosItem > | item |
| cmos::ICmosRW * | cmos |
| std::string | validationKey |
| std::vector < CmosRWChecksumObserver > & | checksumList |
Definition at line 129 of file TokenImpl.h.
| CmosTokenD5 | ( | const smbios::ISmbiosItem & | item, | |
| std::vector< CmosRWChecksumObserver > & | initChecksumList | |||
| ) |
Definition at line 33 of file TokenD5.cpp.
References CmosTokenD5::addChecksumObserver(), CmosTokenD5::item, CmosTokenD5::structure, and dell_protected_value_1_structure::validationKey.

| ~CmosTokenD5 | ( | ) | throw () [virtual] |
Definition at line 52 of file TokenD5.cpp.
| CmosTokenD5 | ( | ) | [protected] |
| CmosTokenD5 | ( | const CmosTokenD5 & | ) | [protected] |
| void activate | ( | ) | const [virtual] |
Definition at line 80 of file TokenD5.cpp.
| virtual void activate | ( | ) | const [pure virtual, inherited] |
Sets the bitmask for bitfield-type tokens.
| void addChecksumObserver | ( | ) | const [protected, virtual] |
Reimplemented in CmosTokenD6.
Definition at line 203 of file TokenD5.cpp.
References dell_protected_value_1_structure::checkIndex, CmosTokenD5::checksumList, dell_protected_value_1_structure::checkType, CmosTokenD5::cmos, dell_protected_value_1_structure::dataPort, dell_protected_value_1_structure::indexPort, CmosTokenD5::item, CmosTokenD5::structure, dell_protected_value_1_structure::valueLen, and dell_protected_value_1_structure::valueStartIndex.
Referenced by CmosTokenD5::CmosTokenD5().
| virtual void getCMOSDetails | ( | u16 * | indexPort, | |
| u16 * | dataPort, | |||
| u8 * | location | |||
| ) | const [pure virtual, inherited] |
returns details about CMOS index/data ports and cmos location.
Implemented in CmosTokenD4.
| const ISmbiosItem & getItemRef | ( | ) | const [virtual] |
Definition at line 65 of file TokenD5.cpp.
References CmosTokenD5::item.
| virtual const ISmbiosItem& getItemRef | ( | ) | const [pure virtual, inherited] |
| const string getString | ( | u8 * | byteArray = 0, |
|
| unsigned int | size = 0 | |||
| ) | const [virtual] |
Definition at line 95 of file TokenD5.cpp.
References CmosTokenD5::cmos, dell_protected_value_1_structure::dataPort, CmosTokenD5::getStringLength(), dell_protected_value_1_structure::indexPort, cmos::readByteArray(), CmosTokenD5::structure, dell_protected_value_1_structure::validationKey, and dell_protected_value_1_structure::valueStartIndex.
Referenced by CmosTokenD5::streamify().

| virtual const std::string getString | ( | u8 * | byteArray = 0, |
|
| unsigned int | size = 0 | |||
| ) | const [pure virtual, inherited] |
returns std:string and raw value in first parameter.
| byteArray | If Non-NULL, getString() will store the raw string here. | |
| size | This must be the length of the space allocated for byteArray. getString() will not overflow this length. |
| virtual unsigned int getStringLength | ( | ) | const [pure virtual, inherited] |
Returns length for string-type tokens.
| unsigned int getStringLength | ( | ) | const [virtual] |
Definition at line 184 of file TokenD5.cpp.
References CmosTokenD5::structure, and dell_protected_value_1_structure::valueLen.
Referenced by CmosTokenD5::getString(), CmosTokenD5::setString(), and CmosTokenD5::streamify().
| virtual std::string getTokenClass | ( | ) | const [pure virtual, inherited] |
| string getTokenClass | ( | ) | const [virtual] |
Reimplemented in CmosTokenD6.
Definition at line 55 of file TokenD5.cpp.
| virtual u32 getType | ( | ) | const [pure virtual, inherited] |
Returns the Token Type, per Dell SMBIOS Spec.
| u32 getType | ( | ) | const |
Definition at line 70 of file TokenD5.cpp.
References CmosTokenD5::structure, and dell_protected_value_1_structure::tokenId.
Referenced by CmosTokenD5::streamify().
| u32 getValueFormat | ( | ) | const [virtual] |
Implements IProtectedToken.
Definition at line 60 of file TokenD5.cpp.
References CmosTokenD5::structure, and dell_protected_value_1_structure::valueFormat.
| bool isActive | ( | ) | const [virtual] |
Definition at line 75 of file TokenD5.cpp.
| virtual bool isActive | ( | ) | const [pure virtual, inherited] |
Returns true if bitfield-type token is set.
| bool isBool | ( | ) | const [virtual] |
Definition at line 90 of file TokenD5.cpp.
References CmosTokenD5::isString().

| virtual bool isBool | ( | ) | const [pure virtual, inherited] |
Returns true for bool-type tokens.
| bool isString | ( | ) | const [virtual] |
Definition at line 85 of file TokenD5.cpp.
Referenced by CmosTokenD5::isBool().
| virtual bool isString | ( | ) | const [pure virtual, inherited] |
Returns true for string-type tokens.
| void operator= | ( | const CmosTokenD5 & | ) | [protected] |
| void setString | ( | const u8 * | byteArray, | |
| size_t | size | |||
| ) | const [virtual] |
Definition at line 150 of file TokenD5.cpp.
References CmosTokenD5::cmos, dell_protected_value_1_structure::dataPort, CmosTokenD5::getStringLength(), dell_protected_value_1_structure::indexPort, CmosTokenD5::structure, dell_protected_value_1_structure::validationKey, dell_protected_value_1_structure::valueStartIndex, and cmos::writeByteArray().

| virtual void setString | ( | const u8 * | byteArray, | |
| size_t | size | |||
| ) | const [pure virtual, inherited] |
| virtual std::ostream& streamify | ( | std::ostream & | cout | ) | const [pure virtual, inherited] |
Referenced by smbios::operator<<().
| std::ostream & streamify | ( | std::ostream & | cout | ) | const [virtual] |
Definition at line 227 of file TokenD5.cpp.
References dell_protected_value_1_structure::dataPort, CmosTokenD5::getString(), CmosTokenD5::getStringLength(), CmosTokenD5::getType(), dell_protected_value_1_structure::handle, dell_protected_value_1_structure::indexPort, CmosTokenD5::structure, dell_protected_value_1_structure::type, and dell_protected_value_1_structure::valueStartIndex.

| bool tryPassword | ( | std::string | pw | ) | const [virtual] |
Implements IProtectedToken.
Definition at line 220 of file TokenD5.cpp.
std::vector< CmosRWChecksumObserver >& checksumList [protected] |
Definition at line 165 of file TokenImpl.h.
Referenced by CmosTokenD6::addChecksumObserver(), and CmosTokenD5::addChecksumObserver().
cmos::ICmosRW* cmos [protected] |
Definition at line 162 of file TokenImpl.h.
Referenced by CmosTokenD6::addChecksumObserver(), CmosTokenD5::addChecksumObserver(), CmosTokenD5::getString(), and CmosTokenD5::setString().
std::auto_ptr<const smbios::ISmbiosItem> item [protected] |
Definition at line 161 of file TokenImpl.h.
Referenced by CmosTokenD6::addChecksumObserver(), CmosTokenD5::addChecksumObserver(), CmosTokenD5::CmosTokenD5(), CmosTokenD6::CmosTokenD6(), and CmosTokenD5::getItemRef().
dell_protected_value_1_structure structure [protected] |
Reimplemented in CmosTokenD6.
Definition at line 160 of file TokenImpl.h.
Referenced by CmosTokenD5::addChecksumObserver(), CmosTokenD5::CmosTokenD5(), CmosTokenD6::CmosTokenD6(), CmosTokenD5::getCMOSDetails(), CmosTokenD5::getString(), CmosTokenD5::getStringLength(), CmosTokenD5::getType(), CmosTokenD5::getValueFormat(), CmosTokenD5::setString(), and CmosTokenD5::streamify().
std::string validationKey [protected] |
Definition at line 164 of file TokenImpl.h.
1.7.1