#include <SmbiosImpl.h>
Inheritance diagram for SmbiosItem:
Public Types | |
enum | { FIELD_LEN_BYTE = 1, FIELD_LEN_WORD = 2, FIELD_LEN_DWORD = 4, FIELD_LEN_QWORD = 8 } |
Public Member Functions | |
SmbiosItem (const SmbiosItem &source) | |
SmbiosItem (const smbiosLowlevel::smbios_structure_header *header=0) | |
virtual | ~SmbiosItem () |
virtual std::auto_ptr< const ISmbiosItem > | clone () const |
virtual std::auto_ptr< ISmbiosItem > | clone () |
virtual std::ostream & | streamify (std::ostream &cout) const |
u8 | getType () const |
u8 | getLength () const |
u16 | getHandle () const |
virtual void | getData (unsigned int offset, void *out, size_t size) const |
virtual const u8 * | getBufferCopy (size_t &length) const |
virtual const size_t | getBufferSize () const |
Returns the buffer size of the item. | |
virtual const char * | getStringByStringNumber (u8) const |
virtual void | fixup (const SmbiosWorkaroundTable *workaround) const |
Protected Attributes | |
const smbiosLowlevel::smbios_structure_header * | header |
size_t | header_size |
Private Member Functions | |
SmbiosItem & | operator= (const SmbiosItem &source) |
|
|
|
Definition at line 43 of file SmbiosItem.cpp. References _, SmbiosItem::header, SmbiosItem::header_size, and u8. Referenced by SmbiosItem::clone(). |
|
Definition at line 67 of file SmbiosItem.cpp. References _, SmbiosItem::header, SmbiosItem::header_size, smbios_structure_header::length, and u8. |
|
Definition at line 110 of file SmbiosItem.cpp. References SmbiosItem::header. |
|
Implements ISmbiosItem. Definition at line 195 of file SmbiosItem.cpp. References SmbiosItem::SmbiosItem(). |
|
Implements ISmbiosItem. Definition at line 190 of file SmbiosItem.cpp. References SmbiosItem::SmbiosItem(). |
|
Definition at line 272 of file SmbiosItem.cpp. References SmbiosWorkaroundTable::fixupItem(), SmbiosItem::header_size, and u8. |
|
Implements ISmbiosItem. Definition at line 258 of file SmbiosItem.cpp. References SmbiosItem::header, and u8. |
|
Returns the buffer size of the item.
Implements ISmbiosItem. Definition at line 267 of file SmbiosItem.cpp. |
|
Set of accessor functions: getU8(), getU16(), getU32(), and getU64() Returns a (byte|word|dword|qword) field from the Item. The offset specified is an int representing the a valid offset within the table. Method will return a u8/u16/u32/u64 (depending on function called). These methods all check the offset parameter for out of bounds conditions. They will throw exceptions on attempts to access data outside the length of the present item.
Implements ISmbiosItem. Definition at line 252 of file SmbiosItem.cpp. References smbios::checkItemBounds(), SmbiosItem::header, SmbiosItem::header_size, and smbios_structure_header::length. |
|
Returns the Handle field of the SMBIOS Item. This field is standard for all SMBIOS tables and is defined in the SMBIOS standard.
Implements ISmbiosItem. Definition at line 210 of file SmbiosItem.cpp. References smbios_structure_header::handle, SmbiosItem::header, and u16. Referenced by SmbiosItem::streamify(). |
|
Returns the Length field of the SMBIOS Item. This field is standard for all SMBIOS tables and is defined in the SMBIOS standard.
Implements ISmbiosItem. Definition at line 205 of file SmbiosItem.cpp. References SmbiosItem::header, smbios_structure_header::length, and u8. Referenced by SmbiosItem::streamify(). |
|
Not likely to be useful to regular client code. It is public mainly to help in writing Unit Tests. Clients should normally use getString(). Implements ISmbiosItem. Definition at line 141 of file SmbiosItem.cpp. References _, smbios::force_u64_to_u32(), SmbiosItem::header, SmbiosItem::header_size, smbios_structure_header::length, and u8. |
|
Returns the Type field of the SMBIOS Item. This field is standard for all SMBIOS tables and is defined in the SMBIOS standard.
Implements ISmbiosItem. Definition at line 200 of file SmbiosItem.cpp. References SmbiosItem::header, smbios_structure_header::type, and u8. Referenced by SmbiosItem::streamify(). |
|
|
|
Used by 'std::ostream &smbios::operator <<( std::ostream &, ISmbiosItem&)' to print out the item info. Not particularly useful for clients. Use operator<< instead. Implements ISmbiosItem. Definition at line 278 of file SmbiosItem.cpp. References SmbiosItem::getHandle(), SmbiosItem::getLength(), SmbiosItem::getType(), and SmbiosItem::header. |
|
Definition at line 208 of file SmbiosImpl.h. Referenced by SmbiosItem::getBufferCopy(), SmbiosItem::getData(), SmbiosItem::getHandle(), SmbiosItem::getLength(), SmbiosItem::getStringByStringNumber(), SmbiosItem::getType(), SmbiosItem::SmbiosItem(), SmbiosItem::streamify(), and SmbiosItem::~SmbiosItem(). |
|
Definition at line 209 of file SmbiosImpl.h. Referenced by SmbiosItem::fixup(), SmbiosItem::getData(), SmbiosItem::getStringByStringNumber(), and SmbiosItem::SmbiosItem(). |