PilotAppInfoBase Class Reference
Base class for all specific kinds of AppInfo. More...
#include <pilotDatabase.h>
Inherited by PilotAppInfo< appinfo, unpack, pack >.
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 setCategory (unsigned int i, const QString &s)
Static Public Member Functions
- static int findCategory (const QString &name, bool unknownIsUnfiled, struct CategoryAppInfo *info)
Static Public Attributes
- static const int MAX_APPINFO_SIZE = 8192
Protected Member Functions
- PilotAppInfoBase ()
- void init (struct CategoryAppInfo *c, int len)
Detailed Description
Base class for all specific kinds of AppInfo.
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()! |
|
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. |
|
Destructor.
|
Member Function Documentation
|
Initialize class members after reading header, to alias data elsewhere. Only for use by the (derived) template classes below. |
|
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.
|
|
Const version of the above function.
|
|
Returns the length of the (whole) AppInfo block.
|
|
Search for the given category.
|
|
Alternative to the above inconvenience function.
|
|
For debugging, display all the category names.
|
|
Gets a single category name.
Returns QString::null if there is no such category number |
|
Sets a category name.
|
Member Data Documentation
|
Maximum size of an AppInfo block, taken roughly from the pilot-link source.
|
The documentation for this class was generated from the following files:
- pilotDatabase.h
- pilotDatabase.cc