#include <TokenImpl.h>
Inheritance diagram for CmosTokenD5:
Public Methods | |
CmosTokenD5 (const smbios::ISmbiosItem &item, std::vector< CmosRWChecksumObserver > &initChecksumList) | |
virtual | ~CmosTokenD5 () throw () |
u32 | getType () const |
Returns the Token Type, per Dell SMBIOS Spec. | |
virtual bool | isActive () const |
Returns true if bitfield-type token is set. | |
virtual void | activate () const |
Sets the bitmask for bitfield-type tokens. | |
virtual bool | isString () const |
Returns true for string-type tokens. | |
virtual bool | isBool () const |
Returns true for bool-type tokens. | |
virtual unsigned int | getStringLength () const |
Returns length for string-type tokens. | |
virtual const std::string | getString (u8 *byteArray=0, unsigned int size=0) const |
returns std:string and raw value in first parameter. | |
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 |
returns details about CMOS index/data ports and cmos location. | |
virtual bool | tryPassword (std::string pw) const |
virtual std::string | getTokenClass () const |
virtual u32 | getValueFormat () const |
virtual std::ostream & | streamify (std::ostream &cout) const |
Protected Methods | |
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 32 of file TokenD5.cpp. References CmosTokenD5::addChecksumObserver(), CmosTokenD5::item, CmosTokenD5::structure, u8, and dell_protected_value_1_structure::validationKey. |
|
Definition at line 51 of file TokenD5.cpp. |
|
|
|
|
|
Sets the bitmask for bitfield-type tokens.
Implements IToken. Definition at line 79 of file TokenD5.cpp. |
|
Reimplemented in CmosTokenD6. Definition at line 202 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(). |
|
returns details about CMOS index/data ports and cmos location.
Implements ICmosToken. Definition at line 191 of file TokenD5.cpp. References dell_protected_value_1_structure::dataPort, dell_protected_value_1_structure::indexPort, CmosTokenD5::structure, u16, u8, dell_protected_value_1_structure::validationKey, and dell_protected_value_1_structure::valueStartIndex. |
|
Implements IToken. Definition at line 64 of file TokenD5.cpp. References CmosTokenD5::item. |
|
returns std:string and raw value in first parameter.
Implements IToken. Definition at line 94 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, u8, dell_protected_value_1_structure::validationKey, and dell_protected_value_1_structure::valueStartIndex. Referenced by CmosTokenD5::streamify(). |
|
Returns length for string-type tokens.
Implements IToken. Definition at line 183 of file TokenD5.cpp. References CmosTokenD5::structure, and dell_protected_value_1_structure::valueLen. Referenced by CmosTokenD5::getString(), CmosTokenD5::setString(), and CmosTokenD5::streamify(). |
|
Implements IToken. Reimplemented in CmosTokenD6. Definition at line 54 of file TokenD5.cpp. |
|
Returns the Token Type, per Dell SMBIOS Spec.
Implements IToken. Definition at line 69 of file TokenD5.cpp. References CmosTokenD5::structure, dell_protected_value_1_structure::tokenId, and u32. Referenced by CmosTokenD5::streamify(). |
|
Implements IProtectedToken. Definition at line 59 of file TokenD5.cpp. References CmosTokenD5::structure, u32, and dell_protected_value_1_structure::valueFormat. |
|
Returns true if bitfield-type token is set.
Implements IToken. Definition at line 74 of file TokenD5.cpp. |
|
Returns true for bool-type tokens.
Implements IToken. Definition at line 89 of file TokenD5.cpp. References CmosTokenD5::isString(). |
|
Returns true for string-type tokens.
Implements IToken. Definition at line 84 of file TokenD5.cpp. Referenced by CmosTokenD5::isBool(). |
|
|
|
Implements IToken. Definition at line 149 of file TokenD5.cpp. References CmosTokenD5::cmos, dell_protected_value_1_structure::dataPort, CmosTokenD5::getStringLength(), dell_protected_value_1_structure::indexPort, CmosTokenD5::structure, u8, dell_protected_value_1_structure::validationKey, dell_protected_value_1_structure::valueStartIndex, and cmos::writeByteArray(). |
|
|
Implements IProtectedToken. Definition at line 219 of file TokenD5.cpp. |
|
Definition at line 168 of file TokenImpl.h. Referenced by CmosTokenD6::addChecksumObserver(), and CmosTokenD5::addChecksumObserver(). |
|
Definition at line 165 of file TokenImpl.h. Referenced by CmosTokenD6::addChecksumObserver(), CmosTokenD5::addChecksumObserver(), CmosTokenD5::getString(), and CmosTokenD5::setString(). |
|
Definition at line 164 of file TokenImpl.h. Referenced by CmosTokenD6::addChecksumObserver(), CmosTokenD5::addChecksumObserver(), CmosTokenD5::CmosTokenD5(), CmosTokenD6::CmosTokenD6(), and CmosTokenD5::getItemRef(). |
|
Reimplemented in CmosTokenD6. Definition at line 163 of file TokenImpl.h. Referenced by CmosTokenD5::addChecksumObserver(), CmosTokenD5::CmosTokenD5(), CmosTokenD5::getCMOSDetails(), CmosTokenD5::getString(), CmosTokenD5::getStringLength(), CmosTokenD5::getType(), CmosTokenD5::getValueFormat(), CmosTokenD5::setString(), and CmosTokenD5::streamify(). |
|
Definition at line 167 of file TokenImpl.h. |