#include <TokenImpl.h>
Inheritance diagram for SmiTokenDA:
Public Member Functions | |
SmiTokenDA (const smbios::ISmbiosItem &item, const calling_interface_token *token) | |
virtual | ~SmiTokenDA () 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 std::string | getTokenClass () const |
virtual u32 | getValueFormat () const |
virtual bool | tryPassword (std::string pw) const |
virtual std::ostream & | streamify (std::ostream &cout) const |
virtual void | getSmiDetails (u16 *cmdIOAddress, u8 *cmdIOCode, u8 *location) const |
returns details about Smi location and value | |
Protected Member Functions | |
SmiTokenDA () | |
SmiTokenDA (const SmiTokenDA &) | |
void | operator= (const SmiTokenDA &) |
Private Attributes | |
std::auto_ptr< const smbios::ISmbiosItem > | item |
calling_interface_structure | structure |
calling_interface_token | token |
std::string | password |
|
Definition at line 44 of file TokenDA.cpp. References SmiTokenDA::item, SmiTokenDA::structure, SmiTokenDA::token, and u8. |
|
Definition at line 56 of file TokenDA.cpp. |
|
|
|
|
|
Sets the bitmask for bitfield-type tokens.
Implements IToken. Definition at line 128 of file TokenDA.cpp. References DCERR, calling_interface_token::location, SmiTokenDA::password, SmiTokenDA::token, calling_interface_token::value, and smi::writeNVStorage(). |
|
Implements IToken. Definition at line 76 of file TokenDA.cpp. |
|
returns details about Smi location and value
Implements ISmiToken. Definition at line 81 of file TokenDA.cpp. References calling_interface_structure::cmdIOAddress, calling_interface_structure::cmdIOCode, calling_interface_token::location, SmiTokenDA::structure, and SmiTokenDA::token. |
|
returns std:string and raw value in first parameter.
Implements IToken. Definition at line 144 of file TokenDA.cpp. References IDellCallingInterfaceSmi::execute(), SmiFactory::getFactory(), IDellCallingInterfaceSmi::getRes(), calling_interface_token::location, IDellCallingInterfaceSmi::setArg(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), SmiTokenDA::token, and u16. |
|
Returns length for string-type tokens.
Implements IToken. Definition at line 184 of file TokenDA.cpp. |
|
Implements IToken. Definition at line 59 of file TokenDA.cpp. |
|
Returns the Token Type, per Dell SMBIOS Spec.
Implements IToken. Definition at line 91 of file TokenDA.cpp. References SmiTokenDA::token, calling_interface_token::tokenId, and u32. Referenced by SmiTokenDA::streamify(). |
|
Implements IProtectedToken. Definition at line 64 of file TokenDA.cpp. References u32. |
|
Returns true if bitfield-type token is set.
Implements IToken. Definition at line 96 of file TokenDA.cpp. References DCERR, calling_interface_token::location, smi::readNVStorage(), SmiTokenDA::token, and calling_interface_token::value. |
|
Returns true for bool-type tokens.
Implements IToken. Definition at line 139 of file TokenDA.cpp. |
|
Returns true for string-type tokens.
Implements IToken. Definition at line 134 of file TokenDA.cpp. |
|
|
|
Implements IToken. Definition at line 169 of file TokenDA.cpp. References smbios::executeWithPassword(), SmiFactory::getFactory(), calling_interface_token::location, SmiTokenDA::password, IDellCallingInterfaceSmi::setArg(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), and SmiTokenDA::token. |
|
Implements IToken. Definition at line 190 of file TokenDA.cpp. References calling_interface_structure::cmdIOAddress, calling_interface_structure::cmdIOCode, SmiTokenDA::getType(), calling_interface_structure::handle, calling_interface_token::location, SmiTokenDA::structure, SmiTokenDA::token, calling_interface_structure::type, and calling_interface_token::value. |
|
Implements IProtectedToken. Definition at line 69 of file TokenDA.cpp. References SmiTokenDA::password. |
|
Definition at line 216 of file TokenImpl.h. Referenced by SmiTokenDA::SmiTokenDA(). |
|
Definition at line 219 of file TokenImpl.h. Referenced by SmiTokenDA::activate(), SmiTokenDA::setString(), and SmiTokenDA::tryPassword(). |
|
Definition at line 217 of file TokenImpl.h. Referenced by SmiTokenDA::getSmiDetails(), SmiTokenDA::SmiTokenDA(), and SmiTokenDA::streamify(). |
|
Definition at line 218 of file TokenImpl.h. Referenced by SmiTokenDA::activate(), SmiTokenDA::getSmiDetails(), SmiTokenDA::getString(), SmiTokenDA::getType(), SmiTokenDA::isActive(), SmiTokenDA::setString(), SmiTokenDA::SmiTokenDA(), and SmiTokenDA::streamify(). |