Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ISmbios.h File Reference

#include "smbios/compat.h"
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#include "smbios/types.h"
#include "smbios/IFactory.h"
#include "smbios/IException.h"
#include "smbios/SmbiosLowLevel.h"
#include "smbios/config/abi_prefix.hpp"
#include "smbios/config/abi_suffix.hpp"

Go to the source code of this file.

Namespaces

namespace  smbios

Classes

class  SmbiosFactory
 AbstractFactory that produces ISmbiosTable objects. More...
class  ISmbiosTable
 Interface definition for Smbios Table operations. More...
class  ISmbiosItem
 Interface definition for Smbios Item operations. More...
class  SmbiosTableIteratorBase
 Iterator base class for ISmbiosTable objects. More...
class  SmbiosTableIterator
class  ConstSmbiosTableIterator

Functions

 DECLARE_EXCEPTION (SmbiosException)
 DECLARE_EXCEPTION_EX (ParameterException, smbios, SmbiosException)
 DECLARE_EXCEPTION_EX (ParseException, smbios, SmbiosException)
 DECLARE_EXCEPTION_EX (StringUnavailable, smbios, SmbiosException)
 DECLARE_EXCEPTION_EX (DataOutOfBounds, smbios, SmbiosException)
 DECLARE_EXCEPTION_EX (ItemNotFound, smbios, SmbiosException)
u8 getItemType (const ISmbiosItem &item)
u8 getItemLength (const ISmbiosItem &item)
u16 getItemHandle (const ISmbiosItem &item)
u8 getU8_FromItem (const ISmbiosItem &item, unsigned int offset)
u16 getU16_FromItem (const ISmbiosItem &item, unsigned int offset)
u32 getU32_FromItem (const ISmbiosItem &item, unsigned int offset)
u64 getU64_FromItem (const ISmbiosItem &item, unsigned int offset)
const char * getString_FromItem (const ISmbiosItem &item, unsigned int offset)
void * getBits_FromItem (const ISmbiosItem &item, unsigned int offset, void *out, unsigned int lsb=0, unsigned int msb=0)
bool isBitSet (const ISmbiosItem *itemPtr, unsigned int offset, unsigned int bitToTest)
template<class R>
R & getData (const ISmbiosItem &item, unsigned int offset, R &out)
std::ostream & operator<< (std::ostream &cout, const ISmbiosTable &item)
std::ostream & operator<< (std::ostream &cout, const ISmbiosItem &item)


Function Documentation

DECLARE_EXCEPTION SmbiosException   ) 
 

DECLARE_EXCEPTION_EX ItemNotFound  ,
smbios  ,
SmbiosException 
 

DECLARE_EXCEPTION_EX DataOutOfBounds  ,
smbios  ,
SmbiosException 
 

DECLARE_EXCEPTION_EX StringUnavailable  ,
smbios  ,
SmbiosException 
 

DECLARE_EXCEPTION_EX ParseException  ,
smbios  ,
SmbiosException 
 

DECLARE_EXCEPTION_EX ParameterException  ,
smbios  ,
SmbiosException 
 

void * getBits_FromItem const ISmbiosItem &  item,
unsigned int  offset,
void *  out,
unsigned int  lsb = 0,
unsigned int  msb = 0
 

Definition at line 351 of file SmbiosItem.cpp.

References _, and ISmbiosItem::getData().

R& getData const ISmbiosItem &  item,
unsigned int  offset,
R &  out
 

Definition at line 340 of file ISmbios.h.

References ISmbiosItem::getData().

Referenced by smbios::getString_FromItem().

u16 getItemHandle const ISmbiosItem &  item  ) 
 

Definition at line 311 of file SmbiosItem.cpp.

References smbios::getU16_FromItem(), and u16.

Referenced by testStandalone::testTable_Subscript().

u8 getItemLength const ISmbiosItem &  item  ) 
 

Definition at line 306 of file SmbiosItem.cpp.

References smbios::getU8_FromItem(), and u8.

Referenced by testStandalone::testTable_Subscript().

u8 getItemType const ISmbiosItem &  item  ) 
 

Definition at line 301 of file SmbiosItem.cpp.

References smbios::getU8_FromItem(), and u8.

Referenced by testStandalone::testTable_Subscript().

const char * getString_FromItem const ISmbiosItem &  item,
unsigned int  offset
 

Definition at line 344 of file SmbiosItem.cpp.

References smbios::getData(), ISmbiosItem::getStringByStringNumber(), and u8.

Referenced by getStringFromTable(), SmbiosWorkaroundFactory::makeNew(), and testPlatform::testVariousAccessors().

u16 getU16_FromItem const ISmbiosItem &  item,
unsigned int  offset
 

Definition at line 323 of file SmbiosItem.cpp.

References ISmbiosItem::getData(), and u16.

Referenced by getIdByteFromRevItem(), smbios::getItemHandle(), SmiFactoryImpl::makeNew(), SmbiosWorkaroundFactory::makeNew(), testStandalone::testEachItemAccessors(), testStandalone::testGetBoundaries(), and testStandalone::testNonXml().

u32 getU32_FromItem const ISmbiosItem &  item,
unsigned int  offset
 

Definition at line 330 of file SmbiosItem.cpp.

References ISmbiosItem::getData(), and u32.

Referenced by testStandalone::testGetBoundaries().

u64 getU64_FromItem const ISmbiosItem &  item,
unsigned int  offset
 

Definition at line 337 of file SmbiosItem.cpp.

References ISmbiosItem::getData().

Referenced by testStandalone::testGetBoundaries().

u8 getU8_FromItem const ISmbiosItem &  item,
unsigned int  offset
 

Definition at line 316 of file SmbiosItem.cpp.

References ISmbiosItem::getData(), and u8.

Referenced by getIdByteFromRevItem(), smbios::getItemLength(), smbios::getItemType(), rbu::getSupportedPacketType(), smbios::isBitSet(), SmiFactoryImpl::makeNew(), SmbiosWorkaroundFactory::makeNew(), testStandalone::testEachItemAccessors(), testStandalone::testGetBoundaries(), and testStandalone::testNonXml().

bool isBitSet const ISmbiosItem *  itemPtr,
unsigned int  offset,
unsigned int  bitToTest
 

Definition at line 384 of file SmbiosItem.cpp.

References smbios::getU8_FromItem(), and u8.

Referenced by testStandalone::testSmbiosXml().

std::ostream& operator<< std::ostream &  cout,
const ISmbiosItem &  item
 

std::ostream& operator<< std::ostream &  cout,
const ISmbiosTable &  item
 


Generated on Tue Feb 26 14:39:01 2008 for SMBIOS Library by  doxygen 1.3.9.1