kpilot/lib
PilotAppInfoBase Class Reference
#include <pilotDatabase.h>
Inheritance diagram for PilotAppInfoBase:

Detailed Description
Base class for all specific kinds of AppInfo.
Definition at line 195 of file pilotDatabase.h.
Public Member Functions | |
PilotAppInfoBase (PilotDatabase *d) | |
virtual | ~PilotAppInfoBase () |
CategoryAppInfo * | categoryInfo () |
const struct CategoryAppInfo * | categoryInfo () const |
PI_SIZE_T | length () const |
int | findCategory (const QString &name, bool unknownIsUnfiled=false) |
void | dump () const |
QString | category (unsigned int i) |
bool | setCategoryName (unsigned int i, const QString &s) |
Static Public Member Functions | |
static int | findCategory (const QString &name, bool unknownIsUnfiled, struct CategoryAppInfo *info) |
static void | dumpCategories (const struct CategoryAppInfo &info) |
Static Public Attributes | |
static const int | MAX_APPINFO_SIZE = 8192 |
Protected Member Functions | |
PilotAppInfoBase () | |
void | init (struct CategoryAppInfo *c, int len) |
Constructor & Destructor Documentation
|
Constructor. This is for use by derived classes (using the template below only, and says that the category info in the base class aliases data in the derived class. Remember to call init()! Definition at line 202 of file pilotDatabase.h. |
|
Constructor, intended for untyped access to the AppInfo only. This throws away everything but the category information. In this variety, the CategoryAppInfo structure is owned by the PilotAppInfoBase object. Definition at line 114 of file pilotDatabase.cc. |
|
Destructor.
Definition at line 124 of file pilotDatabase.cc. |
Member Function Documentation
|
Gets a single category name.
Returns QString::null if there is no such category number Definition at line 188 of file pilotDatabase.cc. |
|
Const version of the above function.
Definition at line 231 of file pilotDatabase.h. |
|
Retrieve the most basic part of the AppInfo block -- the category information which is guaranteed to be the first 240-odd bytes of a database.
Definition at line 229 of file pilotDatabase.h. |
|
For debugging, display all the category names.
Definition at line 182 of file pilotDatabase.cc. |
|
For debugging, display category names for the given AppInfo structure. Called by dump(). Definition at line 164 of file pilotDatabase.cc. |
|
Alternative to the above inconvenience function.
Definition at line 251 of file pilotDatabase.h. |
|
Search for the given category
If
Definition at line 130 of file pilotDatabase.cc. |
|
Initialize class members after reading header, to alias data elsewhere. Only for use by the (derived) template classes below. Definition at line 207 of file pilotDatabase.h. |
|
Returns the length of the (whole) AppInfo block.
Definition at line 233 of file pilotDatabase.h. |
|
Sets a category name.
Definition at line 194 of file pilotDatabase.cc. |
Member Data Documentation
|
Maximum size of an AppInfo block, taken roughly from the pilot-link source.
Definition at line 215 of file pilotDatabase.h. |
The documentation for this class was generated from the following files: