#include <TokenImpl.h>


Public Member Functions | |
| SmiTokenDA (const smbios::ISmbiosItem &item, const calling_interface_token *token) | |
| virtual | ~SmiTokenDA () 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 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 |
| 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 | getSmiDetails (u16 *cmdIOAddress, u8 *cmdIOCode, u8 *location) const =0 |
| 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 185 of file TokenImpl.h.
| SmiTokenDA | ( | const smbios::ISmbiosItem & | item, | |
| const calling_interface_token * | token | |||
| ) |
Definition at line 44 of file TokenDA.cpp.
References SmiTokenDA::item, SmiTokenDA::structure, and SmiTokenDA::token.
| ~SmiTokenDA | ( | ) | throw () [virtual] |
Definition at line 56 of file TokenDA.cpp.
| SmiTokenDA | ( | ) | [protected] |
| SmiTokenDA | ( | const SmiTokenDA & | ) | [protected] |
| void activate | ( | ) | const [virtual] |
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().

| virtual void activate | ( | ) | const [pure virtual, inherited] |
Sets the bitmask for bitfield-type tokens.
| const ISmbiosItem & getItemRef | ( | ) | const [virtual] |
Definition at line 76 of file TokenDA.cpp.
References SmiTokenDA::item.
| virtual const ISmbiosItem& getItemRef | ( | ) | const [pure virtual, inherited] |
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.
| virtual void getSmiDetails | ( | u16 * | cmdIOAddress, | |
| u8 * | cmdIOCode, | |||
| u8 * | location | |||
| ) | const [pure virtual, inherited] |
returns details about Smi location and value
| 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. |
| const string getString | ( | u8 * | byteArray = 0, |
|
| unsigned int | size = 0 | |||
| ) | const [virtual] |
Definition at line 144 of file TokenDA.cpp.
References SmiFactory::DELL_CALLING_INTERFACE_SMI, IDellCallingInterfaceSmi::execute(), SmiFactory::getFactory(), IDellCallingInterfaceSmi::getRes(), calling_interface_token::location, IDellCallingInterfaceSmi::setArg(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), and SmiTokenDA::token.

| 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 TokenDA.cpp.
| virtual std::string getTokenClass | ( | ) | const [pure virtual, inherited] |
| string getTokenClass | ( | ) | const [virtual] |
Definition at line 59 of file TokenDA.cpp.
| virtual u32 getType | ( | ) | const [pure virtual, inherited] |
Returns the Token Type, per Dell SMBIOS Spec.
| u32 getType | ( | ) | const |
Definition at line 91 of file TokenDA.cpp.
References SmiTokenDA::token, and calling_interface_token::tokenId.
Referenced by SmiTokenDA::streamify().
| u32 getValueFormat | ( | ) | const [virtual] |
Implements IProtectedToken.
Definition at line 64 of file TokenDA.cpp.
| bool isActive | ( | ) | const [virtual] |
Definition at line 96 of file TokenDA.cpp.
References DCERR, calling_interface_token::location, smi::readNVStorage(), SmiTokenDA::token, and calling_interface_token::value.

| virtual bool isActive | ( | ) | const [pure virtual, inherited] |
Returns true if bitfield-type token is set.
| bool isBool | ( | ) | const [virtual] |
Definition at line 139 of file TokenDA.cpp.
| virtual bool isBool | ( | ) | const [pure virtual, inherited] |
Returns true for bool-type tokens.
| virtual bool isString | ( | ) | const [pure virtual, inherited] |
Returns true for string-type tokens.
| bool isString | ( | ) | const [virtual] |
Definition at line 134 of file TokenDA.cpp.
| void operator= | ( | const SmiTokenDA & | ) | [protected] |
| virtual void setString | ( | const u8 * | byteArray, | |
| size_t | size | |||
| ) | const [pure virtual, inherited] |
| void setString | ( | const u8 * | byteArray, | |
| size_t | size | |||
| ) | const [virtual] |
Definition at line 169 of file TokenDA.cpp.
References SmiFactory::DELL_CALLING_INTERFACE_SMI, smbios::executeWithPassword(), SmiFactory::getFactory(), calling_interface_token::location, SmiTokenDA::password, IDellCallingInterfaceSmi::setArg(), IDellCallingInterfaceSmi::setClass(), IDellCallingInterfaceSmi::setSelect(), and SmiTokenDA::token.

| std::ostream & streamify | ( | std::ostream & | cout | ) | const [virtual] |
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.

| virtual std::ostream& streamify | ( | std::ostream & | cout | ) | const [pure virtual, inherited] |
Referenced by smbios::operator<<().
| bool tryPassword | ( | std::string | pw | ) | const [virtual] |
Implements IProtectedToken.
Definition at line 69 of file TokenDA.cpp.
References SmiTokenDA::password.
std::auto_ptr<const smbios::ISmbiosItem> item [private] |
Definition at line 213 of file TokenImpl.h.
Referenced by SmiTokenDA::getItemRef(), and SmiTokenDA::SmiTokenDA().
std::string password [mutable, private] |
Definition at line 216 of file TokenImpl.h.
Referenced by SmiTokenDA::activate(), SmiTokenDA::setString(), and SmiTokenDA::tryPassword().
calling_interface_structure structure [private] |
Definition at line 214 of file TokenImpl.h.
Referenced by SmiTokenDA::getSmiDetails(), SmiTokenDA::SmiTokenDA(), and SmiTokenDA::streamify().
calling_interface_token token [private] |
Definition at line 215 of file TokenImpl.h.
Referenced by SmiTokenDA::activate(), SmiTokenDA::getSmiDetails(), SmiTokenDA::getString(), SmiTokenDA::getType(), SmiTokenDA::isActive(), SmiTokenDA::setString(), SmiTokenDA::SmiTokenDA(), and SmiTokenDA::streamify().
1.7.1