#include <expbmp.h>
Inheritance diagram for ExportedBitmaps:
Public Member Functions | |
ExportedBitmaps () | |
Construct the class which encapsulates a list of exported Bitmaps. | |
~ExportedBitmaps () | |
Destroy the class which encapsulates a list of exported Bitmaps. | |
BOOL | AddBitmap (KernelBitmap *pNewBmp, INT32 RecordNumber) |
Add the specified Bitmap to the list of already exported Bitmaps. | |
ExportBitmap * | GetBitmap (KernelBitmap *pSearchBmp) |
Find an indexed Bitmap in the exported list. | |
ExportBitmap * | EnumerateBitmaps (ExportBitmap *pExpBmp=NULL) |
UINT32 | GetCount () |
Protected Attributes | |
ExportBitmapList | Bitmaps |
Definition at line 175 of file expbmp.h.
|
Construct the class which encapsulates a list of exported Bitmaps.
Definition at line 215 of file expbmp.cpp.
|
|
Destroy the class which encapsulates a list of exported Bitmaps.
Definition at line 233 of file expbmp.cpp.
|
|
Add the specified Bitmap to the list of already exported Bitmaps.
Definition at line 254 of file expbmp.cpp. 00255 { 00256 ERROR2IF(pBmp->HasBeenDeleted(), FALSE, "Trying to add a deleted bitmap to the export list"); 00257 00258 // Add the Bitmap onto our list 00259 ExportBitmap * pNewBmp = Bitmaps.AddBitmap(pBmp, RecordNumber); 00260 if (pNewBmp) 00261 return TRUE; 00262 00263 return FALSE; 00264 }
|
|
Definition at line 319 of file expbmp.cpp. 00320 { 00321 if (pExpBmp == NULL) 00322 return (ExportBitmap *)Bitmaps.GetHead(); 00323 00324 return (ExportBitmap *)Bitmaps.GetNext(pExpBmp); 00325 }
|
|
Find an indexed Bitmap in the exported list.
Definition at line 280 of file expbmp.cpp. 00281 { 00282 if (pSearchBmp == NULL) 00283 { 00284 ERROR3("ExportedBitmaps::GetBitmap - searching for a null indexed Bitmap!"); 00285 } 00286 00287 ERROR2IF(pSearchBmp->HasBeenDeleted(), NULL, "Why am I looking for a deleted bitmap ?"); 00288 00289 ExportBitmap* pExportedBitmap = (ExportBitmap *)Bitmaps.GetHead(); 00290 while (pExportedBitmap) 00291 { 00292 // Compare the indexed Bitmap pointers and return the match if they are the same 00293 if (pExportedBitmap->pBmp == pSearchBmp) 00294 return pExportedBitmap; 00295 00296 // Try the next Bitmap in the list 00297 pExportedBitmap = (ExportBitmap *)Bitmaps.GetNext(pExportedBitmap); 00298 } 00299 00300 // No - return failure. 00301 return NULL; 00302 }
|
|
Definition at line 193 of file expbmp.h.
|
|
|