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

#include <RbuImpl.h>

Inheritance diagram for RbuHdr:
Inheritance graph
Collaboration diagram for RbuHdr:
Collaboration graph

Public Member Functions

 RbuHdr (std::string filename)
virtual ~RbuHdr ()
virtual std::ostream & streamify (std::ostream &cout) const
 Used by operator << (std::ostream & cout, const IRbuHdr & ) to.
virtual std::string getBiosVersion () const
virtual void getHdrVersion (unsigned int &major, unsigned int &minor) const
virtual const u32getSystemIdList () const
virtual void doUpdate () const
virtual FILE * getFh () const

Protected Member Functions

 RbuHdr ()

Private Member Functions

 RbuHdr (const RbuHdr &source)

Private Attributes

FILE * hdrFh
struct rbu_hdr_file_header header
u32 sysIdList [NUM_SYS_ID_IN_HDR+1]

Detailed Description

Definition at line 55 of file RbuImpl.h.

Constructor & Destructor Documentation

RbuHdr ( std::string  filename)
explicit
~RbuHdr ( )
virtual

Definition at line 110 of file RbuHdr.cpp.

References RbuHdr::hdrFh.

RbuHdr ( )
protected
RbuHdr ( const RbuHdr source)
private

Member Function Documentation

void doUpdate ( ) const
virtual

Implements IRbuHdr.

Definition at line 150 of file RbuHdr.cpp.

string getBiosVersion ( ) const
virtual

Implements IRbuHdr.

Definition at line 116 of file RbuHdr.cpp.

References rbu_hdr_file_header::biosVersion, RbuHdr::header, and rbu_hdr_file_header::headerMajorVer.

Referenced by RbuHdr::streamify().

FILE * getFh ( ) const
virtual

Implements IRbuHdr.

Definition at line 162 of file RbuHdr.cpp.

References RbuHdr::hdrFh.

void getHdrVersion ( unsigned int &  major,
unsigned int &  minor 
) const
virtual
const u32 * getSystemIdList ( ) const
virtual

Implements IRbuHdr.

Definition at line 147 of file RbuHdr.cpp.

References RbuHdr::sysIdList.

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

Used by operator << (std::ostream & cout, const IRbuHdr & ) to.

Users normally would not need or want to call this API. The normal operator<<() has been overloaded to call this function internally.

Implements IRbuHdr.

Definition at line 172 of file RbuHdr.cpp.

References RbuHdr::getBiosVersion(), RbuHdr::header, rbu_hdr_file_header::headerId, rbu_hdr_file_header::headerLength, rbu_hdr_file_header::headerMajorVer, rbu_hdr_file_header::headerMinorVer, rbu_hdr_file_header::numSystems, rbu_hdr_file_header::quickCheck, and RbuHdr::sysIdList.

Here is the call graph for this function:

Member Data Documentation

FILE* hdrFh
private

Definition at line 78 of file RbuImpl.h.

Referenced by RbuHdr::getFh(), and RbuHdr::~RbuHdr().

struct rbu_hdr_file_header header
private

Definition at line 79 of file RbuImpl.h.

Referenced by RbuHdr::getBiosVersion(), RbuHdr::getHdrVersion(), and RbuHdr::streamify().

u32 sysIdList[NUM_SYS_ID_IN_HDR+1]
private

Definition at line 80 of file RbuImpl.h.

Referenced by RbuHdr::getSystemIdList(), and RbuHdr::streamify().


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