IProtectedToken Class Reference

#include <IToken.h>

Inheritance diagram for IProtectedToken:

IToken CmosTokenD5 SmiTokenDA CmosTokenD6 List of all members.

Public Member Functions

virtual ~IProtectedToken () throw ()
virtual bool tryPassword (std::string pw) const =0
virtual u32 getValueFormat () const =0
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

Protected Member Functions

 IProtectedToken ()
 IProtectedToken (const IProtectedToken &)
IProtectedToken & operator= (const IProtectedToken &)

Detailed Description

Definition at line 135 of file IToken.h.


Constructor & Destructor Documentation

virtual ~IProtectedToken (   )  throw () [inline, virtual]
 

Definition at line 138 of file IToken.h.

IProtectedToken (   )  [protected]
 

Definition at line 34 of file Token.cpp.

IProtectedToken (  const IProtectedToken &   )  [protected]
 


Member Function Documentation

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

Sets the bitmask for bitfield-type tokens.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

virtual const ISmbiosItem& getItemRef (   )  const [pure virtual, inherited]
 

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

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.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

virtual unsigned int getStringLength (   )  const [pure virtual, inherited]
 

Returns length for string-type tokens.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

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

Implemented in CmosTokenD4, CmosTokenD5, CmosTokenD6, and SmiTokenDA.

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

Returns the Token Type, per Dell SMBIOS Spec.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

virtual u32 getValueFormat (   )  const [pure virtual]
 

Implemented in CmosTokenD5, and SmiTokenDA.

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

Returns true if bitfield-type token is set.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

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

Returns true for bool-type tokens.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

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

Returns true for string-type tokens.

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

IProtectedToken& operator= (  const IProtectedToken &   )  [protected]
 

virtual void setString (  const u8 *  byteArray,
size_t  size
)  const [pure virtual, inherited]
 

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

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

Implemented in CmosTokenD4, CmosTokenD5, and SmiTokenDA.

Referenced by smbios::operator<<().

virtual bool tryPassword (  std::string  pw  )  const [pure virtual]
 

Implemented in CmosTokenD5, and SmiTokenDA.


The documentation for this class was generated from the following files:
Generated on Tue Jan 17 02:59:09 2006 for SMBIOS Library by  doxygen 1.4.6