SMBIOS Library
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
CmosTokenD6 Class Reference

#include <TokenImpl.h>

Inheritance diagram for CmosTokenD6:
Inheritance graph
Collaboration diagram for CmosTokenD6:
Collaboration graph

Public Member Functions

 CmosTokenD6 (const smbios::ISmbiosItem &item, std::vector< CmosRWChecksumObserver > &initChecksumList)
virtual std::string getTokenClass () const
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 ISmbiosItemgetItemRef () 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 u32 getValueFormat () const
virtual std::ostream & streamify (std::ostream &cout) const

Protected Member Functions

 CmosTokenD6 ()
 CmosTokenD6 (const CmosTokenD6 &)
void operator= (const CmosTokenD6 &)
virtual void addChecksumObserver () const

Protected Attributes

std::auto_ptr< const
smbios::ISmbiosItem
item
cmos::ICmosRWcmos
std::string validationKey
std::vector
< CmosRWChecksumObserver > & 
checksumList

Private Attributes

dell_protected_value_2_structure structure

Detailed Description

Definition at line 171 of file TokenImpl.h.

Constructor & Destructor Documentation

CmosTokenD6 ( const smbios::ISmbiosItem item,
std::vector< CmosRWChecksumObserver > &  initChecksumList 
)

Definition at line 33 of file TokenD6.cpp.

References CmosTokenD5::item, CmosTokenD5::structure, and CmosTokenD6::structure.

CmosTokenD6 ( )
protected
CmosTokenD6 ( const CmosTokenD6 )
protected

Member Function Documentation

void activate ( ) const
virtualinherited

Sets the bitmask for bitfield-type tokens.

Implements IToken.

Definition at line 80 of file TokenD5.cpp.

void addChecksumObserver ( ) const
protectedvirtual
void getCMOSDetails ( u16 indexPort,
u16 dataPort,
u8 location 
) const
virtualinherited
const ISmbiosItem & getItemRef ( ) const
virtualinherited

Implements IToken.

Definition at line 65 of file TokenD5.cpp.

References CmosTokenD5::item.

const string getString ( u8 byteArray = 0,
unsigned int  size = 0 
) const
virtualinherited

returns std:string and raw value in first parameter.

Parameters
byteArrayIf Non-NULL, getString() will store the raw string here.
sizeThis must be the length of the space allocated for byteArray. getString() will not overflow this length.
Returns
Returns a C++-style std::string initialized with the contents of byteArray. Only useful for strings that hold C-style zero-terminated strings.

Implements IToken.

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().

Here is the call graph for this function:

unsigned int getStringLength ( ) const
virtualinherited

Returns length for string-type tokens.

Implements IToken.

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().

string getTokenClass ( ) const
virtual

Reimplemented from CmosTokenD5.

Definition at line 51 of file TokenD6.cpp.

u32 getType ( ) const
virtualinherited

Returns the Token Type, per Dell SMBIOS Spec.

Implements IToken.

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
virtualinherited
bool isActive ( ) const
virtualinherited

Returns true if bitfield-type token is set.

Implements IToken.

Definition at line 75 of file TokenD5.cpp.

bool isBool ( ) const
virtualinherited

Returns true for bool-type tokens.

Implements IToken.

Definition at line 90 of file TokenD5.cpp.

References CmosTokenD5::isString().

Here is the call graph for this function:

bool isString ( ) const
virtualinherited

Returns true for string-type tokens.

Implements IToken.

Definition at line 85 of file TokenD5.cpp.

Referenced by CmosTokenD5::isBool().

void operator= ( const CmosTokenD6 )
protected
void setString ( const u8 byteArray,
size_t  size 
) const
virtualinherited
std::ostream & streamify ( std::ostream &  cout) const
virtualinherited
bool tryPassword ( std::string  pw) const
virtualinherited

Implements IProtectedToken.

Definition at line 220 of file TokenD5.cpp.

Member Data Documentation

std::vector< CmosRWChecksumObserver >& checksumList
protectedinherited
cmos::ICmosRW* cmos
protectedinherited
std::auto_ptr<const smbios::ISmbiosItem> item
protectedinherited

Definition at line 185 of file TokenImpl.h.

Referenced by CmosTokenD6::addChecksumObserver(), and CmosTokenD6::CmosTokenD6().

std::string validationKey
protectedinherited

Definition at line 167 of file TokenImpl.h.


The documentation for this class was generated from the following files: