smartmontools SVN Rev 5645
Utility to control and monitor storage systems with "S.M.A.R.T."
|
Drive database class. More...
Public Member Functions | |
drive_database () | |
~drive_database () | |
unsigned | size () const |
Get total number of entries. | |
unsigned | custom_size () const |
Get number of custom entries. | |
const drive_settings & | operator[] (unsigned i) |
Array access. | |
void | push_back (const drive_settings &src) |
Append new custom entry. | |
void | append (const drive_settings *builtin_tab, unsigned builtin_size) |
Append builtin table. | |
Private Member Functions | |
const char * | copy_string (const char *str) |
drive_database (const drive_database &) | |
void | operator= (const drive_database &) |
Private Attributes | |
const drive_settings * | m_builtin_tab |
unsigned | m_builtin_size |
std::vector< drive_settings > | m_custom_tab |
std::vector< char * > | m_custom_strings |
Drive database class.
Stores custom entries read from file. Provides transparent access to concatenation of custom and default table.
Definition at line 52 of file knowndrives.cpp.
drive_database::drive_database | ( | ) |
Definition at line 90 of file knowndrives.cpp.
drive_database::~drive_database | ( | ) |
Definition at line 95 of file knowndrives.cpp.
|
private |
|
inline |
Append builtin table.
Definition at line 74 of file knowndrives.cpp.
|
private |
Definition at line 118 of file knowndrives.cpp.
|
inline |
Get number of custom entries.
Definition at line 64 of file knowndrives.cpp.
|
private |
const drive_settings & drive_database::operator[] | ( | unsigned | i | ) |
Array access.
Definition at line 101 of file knowndrives.cpp.
void drive_database::push_back | ( | const drive_settings & | src | ) |
Append new custom entry.
Definition at line 107 of file knowndrives.cpp.
|
inline |
Get total number of entries.
Definition at line 60 of file knowndrives.cpp.
|
private |
Definition at line 79 of file knowndrives.cpp.
|
private |
Definition at line 78 of file knowndrives.cpp.
|
private |
Definition at line 82 of file knowndrives.cpp.
|
private |
Definition at line 81 of file knowndrives.cpp.