SMBIOS Library
|
#include <TokenImpl.h>
Public Member Functions | |
CmosTokenD4 (const smbios::ISmbiosItem &item, const indexed_io_token *token) | |
virtual | ~CmosTokenD4 () 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 std::string | getTokenClass () const |
virtual std::ostream & | streamify (std::ostream &cout) const |
Protected Member Functions | |
CmosTokenD4 () | |
CmosTokenD4 (const CmosTokenD4 &) | |
void | operator= (const CmosTokenD4 &) |
Private Attributes | |
std::auto_ptr< const smbios::ISmbiosItem > | item |
indexed_io_access_structure | structure |
indexed_io_token | token |
cmos::ICmosRW * | cmos |
Definition at line 96 of file TokenImpl.h.
CmosTokenD4 | ( | const smbios::ISmbiosItem & | item, |
const indexed_io_token * | token | ||
) |
Definition at line 32 of file TokenD4.cpp.
References CmosTokenD4::item, CmosTokenD4::structure, and CmosTokenD4::token.
|
virtual |
Definition at line 44 of file TokenD4.cpp.
|
protected |
|
protected |
|
virtual |
Sets the bitmask for bitfield-type tokens.
Implements IToken.
Definition at line 81 of file TokenD4.cpp.
References indexed_io_token::andMask, CmosTokenD4::cmos, indexed_io_access_structure::dataPort, indexed_io_access_structure::indexPort, CmosTokenD4::isString(), indexed_io_token::location, indexed_io_token::orValue, ICmosRW::readByte(), CmosTokenD4::structure, CmosTokenD4::token, and ICmosRW::writeByte().
returns details about CMOS index/data ports and cmos location.
Implements ICmosToken.
Definition at line 200 of file TokenD4.cpp.
References indexed_io_access_structure::dataPort, indexed_io_access_structure::indexPort, indexed_io_token::location, CmosTokenD4::structure, and CmosTokenD4::token.
|
virtual |
|
virtual |
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. |
Implements IToken.
Definition at line 116 of file TokenD4.cpp.
References CmosTokenD4::cmos, indexed_io_access_structure::dataPort, CmosTokenD4::getStringLength(), indexed_io_access_structure::indexPort, CmosTokenD4::isString(), indexed_io_token::location, cmos::readByteArray(), CmosTokenD4::structure, and CmosTokenD4::token.
Referenced by CmosTokenD4::streamify().
|
virtual |
Returns length for string-type tokens.
Implements IToken.
Definition at line 190 of file TokenD4.cpp.
References CmosTokenD4::isString(), indexed_io_token::stringLength, and CmosTokenD4::token.
Referenced by CmosTokenD4::getString(), CmosTokenD4::setString(), and CmosTokenD4::streamify().
|
virtual |
Implements IToken.
Definition at line 47 of file TokenD4.cpp.
|
virtual |
Returns the Token Type, per Dell SMBIOS Spec.
Implements IToken.
Definition at line 57 of file TokenD4.cpp.
References CmosTokenD4::token, and indexed_io_token::tokenId.
Referenced by CmosTokenD4::streamify().
|
virtual |
Returns true if bitfield-type token is set.
Implements IToken.
Definition at line 62 of file TokenD4.cpp.
References indexed_io_token::andMask, CmosTokenD4::cmos, indexed_io_access_structure::dataPort, indexed_io_access_structure::indexPort, CmosTokenD4::isString(), indexed_io_token::location, indexed_io_token::orValue, ICmosRW::readByte(), CmosTokenD4::structure, and CmosTokenD4::token.
Referenced by CmosTokenD4::streamify().
|
virtual |
Returns true for bool-type tokens.
Implements IToken.
Definition at line 111 of file TokenD4.cpp.
References CmosTokenD4::isString().
|
virtual |
Returns true for string-type tokens.
Implements IToken.
Definition at line 103 of file TokenD4.cpp.
References indexed_io_token::andMask, and CmosTokenD4::token.
Referenced by CmosTokenD4::activate(), CmosTokenD4::getString(), CmosTokenD4::getStringLength(), CmosTokenD4::isActive(), CmosTokenD4::isBool(), CmosTokenD4::setString(), and CmosTokenD4::streamify().
|
protected |
|
virtual |
Implements IToken.
Definition at line 167 of file TokenD4.cpp.
References CmosTokenD4::cmos, indexed_io_access_structure::dataPort, CmosTokenD4::getStringLength(), indexed_io_access_structure::indexPort, CmosTokenD4::isString(), indexed_io_token::location, CmosTokenD4::structure, CmosTokenD4::token, and cmos::writeByteArray().
|
virtual |
Implements IToken.
Definition at line 208 of file TokenD4.cpp.
References indexed_io_token::andMask, indexed_io_access_structure::dataPort, CmosTokenD4::getString(), CmosTokenD4::getStringLength(), CmosTokenD4::getType(), indexed_io_access_structure::handle, indexed_io_access_structure::indexPort, CmosTokenD4::isActive(), CmosTokenD4::isString(), indexed_io_token::location, indexed_io_token::orValue, CmosTokenD4::structure, CmosTokenD4::token, and indexed_io_access_structure::type.
|
private |
Definition at line 128 of file TokenImpl.h.
Referenced by CmosTokenD4::activate(), CmosTokenD4::getString(), CmosTokenD4::isActive(), and CmosTokenD4::setString().
|
private |
Definition at line 125 of file TokenImpl.h.
Referenced by CmosTokenD4::CmosTokenD4(), and CmosTokenD4::getItemRef().
|
private |
Definition at line 126 of file TokenImpl.h.
Referenced by CmosTokenD4::activate(), CmosTokenD4::CmosTokenD4(), CmosTokenD4::getCMOSDetails(), CmosTokenD4::getString(), CmosTokenD4::isActive(), CmosTokenD4::setString(), and CmosTokenD4::streamify().
|
private |
Definition at line 127 of file TokenImpl.h.
Referenced by CmosTokenD4::activate(), CmosTokenD4::CmosTokenD4(), CmosTokenD4::getCMOSDetails(), CmosTokenD4::getString(), CmosTokenD4::getStringLength(), CmosTokenD4::getType(), CmosTokenD4::isActive(), CmosTokenD4::isString(), CmosTokenD4::setString(), and CmosTokenD4::streamify().