Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

smbios::IToken Class Reference

Interface to inspect or manipulate individual tokens. More...

#include <IToken.h>


Public Member Functions

virtual ~IToken ()
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

 IToken ()


Detailed Description

Interface to inspect or manipulate individual tokens.


Constructor & Destructor Documentation

virtual smbios::IToken::~IToken  )  [virtual]
 

smbios::IToken::IToken  )  [protected]
 


Member Function Documentation

virtual void smbios::IToken::activate  )  const [pure virtual]
 

Sets the bitmask for bitfield-type tokens.

virtual const ISmbiosItem& smbios::IToken::getItemRef  )  const [pure virtual]
 

virtual const std::string smbios::IToken::getString u8 byteArray = 0,
unsigned int  size = 0
const [pure virtual]
 

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.

virtual unsigned int smbios::IToken::getStringLength  )  const [pure virtual]
 

Returns length for string-type tokens.

virtual std::string smbios::IToken::getTokenClass  )  const [pure virtual]
 

virtual u32 smbios::IToken::getType  )  const [pure virtual]
 

Returns the Token Type, per Dell SMBIOS Spec.

virtual bool smbios::IToken::isActive  )  const [pure virtual]
 

Returns true if bitfield-type token is set.

virtual bool smbios::IToken::isBool  )  const [pure virtual]
 

Returns true for bool-type tokens.

virtual bool smbios::IToken::isString  )  const [pure virtual]
 

Returns true for string-type tokens.

virtual void smbios::IToken::setString const u8 byteArray,
size_t  size
const [pure virtual]
 

virtual std::ostream& smbios::IToken::streamify std::ostream &  cout  )  const [pure virtual]
 


The documentation for this class was generated from the following file:
Generated on Tue Feb 9 17:22:46 2010 for libsmbios_c library by  doxygen 1.3.9.1