Public Member Functions | Protected Member Functions | Private Attributes

CmosTokenD4 Class Reference

#include <TokenImpl.h>

Inheritance diagram for CmosTokenD4:
Inheritance graph
[legend]
Collaboration diagram for CmosTokenD4:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CmosTokenD4 (const smbios::ISmbiosItem &item, const indexed_io_token *token)
virtual ~CmosTokenD4 () 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 ISmbiosItemgetItemRef () 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
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 ISmbiosItemgetItemRef () const =0
virtual std::ostream & streamify (std::ostream &cout) const =0

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::ICmosRWcmos

Detailed Description

Definition at line 93 of file TokenImpl.h.


Constructor & Destructor Documentation

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.

~CmosTokenD4 (  )  throw () [virtual]

Definition at line 44 of file TokenD4.cpp.

CmosTokenD4 (  )  [protected]
CmosTokenD4 ( const CmosTokenD4  )  [protected]

Member Function Documentation

void activate (  )  const [virtual]
virtual void activate (  )  const [pure virtual, inherited]

Sets the bitmask for bitfield-type tokens.

void getCMOSDetails ( u16 indexPort,
u16 dataPort,
u8 location 
) const [virtual]

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.

const ISmbiosItem & getItemRef (  )  const [virtual]

Definition at line 52 of file TokenD4.cpp.

References CmosTokenD4::item.

virtual const ISmbiosItem& getItemRef (  )  const [pure virtual, inherited]
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.

Parameters:
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.
Returns:
Returns a C++-style std::string initialized with the contents of byteArray. Only useful for strings that hold C-style zero-terminated strings.
const string getString ( u8 byteArray = 0,
unsigned int  size = 0 
) const [virtual]
virtual unsigned int getStringLength (  )  const [pure virtual, inherited]

Returns length for string-type tokens.

unsigned int getStringLength (  )  const [virtual]

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

Here is the call graph for this function:

string getTokenClass (  )  const [virtual]

Definition at line 47 of file TokenD4.cpp.

virtual std::string getTokenClass (  )  const [pure virtual, inherited]
u32 getType (  )  const

Definition at line 57 of file TokenD4.cpp.

References CmosTokenD4::token, and indexed_io_token::tokenId.

Referenced by CmosTokenD4::streamify().

virtual u32 getType (  )  const [pure virtual, inherited]

Returns the Token Type, per Dell SMBIOS Spec.

bool isActive (  )  const [virtual]
virtual bool isActive (  )  const [pure virtual, inherited]

Returns true if bitfield-type token is set.

virtual bool isBool (  )  const [pure virtual, inherited]

Returns true for bool-type tokens.

bool isBool (  )  const [virtual]

Definition at line 111 of file TokenD4.cpp.

References CmosTokenD4::isString().

Here is the call graph for this function:

virtual bool isString (  )  const [pure virtual, inherited]

Returns true for string-type tokens.

bool isString (  )  const [virtual]
void operator= ( const CmosTokenD4  )  [protected]
void setString ( const u8 byteArray,
size_t  size 
) const [virtual]
virtual void setString ( const u8 byteArray,
size_t  size 
) const [pure virtual, inherited]
virtual std::ostream& streamify ( std::ostream &  cout  )  const [pure virtual, inherited]

Referenced by smbios::operator<<().

std::ostream & streamify ( std::ostream &  cout  )  const [virtual]

Member Data Documentation

cmos::ICmosRW* cmos [private]
std::auto_ptr<const smbios::ISmbiosItem> item [private]

Definition at line 122 of file TokenImpl.h.

Referenced by CmosTokenD4::CmosTokenD4(), and CmosTokenD4::getItemRef().


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