Kaim::BoxObstaclesCollectionBlobBuilder Class Reference
#include <boxobstacleblob.h>
A type of blob builder that creates a BoxObstaclesCollectionBlob from a list of box BoxObstacles (Kaim::BoxObstacle).
You can use this class to serialize the obstacles to and from a file on disk.
Inherits Kaim::BaseBlobBuilder< BoxObstaclesCollectionBlob >.
This method:
- Calls DoBuild() in COUNT mode to determine the amount of memory needed for the blob to be built.
- Allocates the amount of memory in the specified BlobHandler.
- Calls DoBuild() again, in WRITE mode, to actually build the blob in the buffer allocated by the BlobHandler.
void Kaim::BaseBlobBuilder< BoxObstaclesCollectionBlob >::BuildFlatBlob |
( |
BoxObstaclesCollectionBlob & |
blob | ) |
|
|
inherited |
Simple way to use DoBuild in case of flat blob (that is, a blob that does not have a BlobArray or BlobRef)
void Kaim::BaseBlobBuilder< BoxObstaclesCollectionBlob >::DoAllocAndBuildReferencedBlob |
( |
BlobBuffer * |
blobBuffer, |
|
|
BlobRef< BoxObstaclesCollectionBlob > * |
blobRef |
|
) |
| |
|
inherited |
void Kaim::BoxObstaclesCollectionBlobBuilder::DoBuild |
( |
| ) |
|
|
virtual |
void Kaim::BaseBlobBuilder< BoxObstaclesCollectionBlob >::DoBuildAllocatedBlob |
( |
BlobBuffer * |
blobBuffer, |
|
|
BoxObstaclesCollectionBlob * |
blob |
|
) |
| |
|
inherited |
For internal use. Check if m_buildingPart == BUILDING_SHALLOW_PART and return this.
Indicates whether the builder is operating in COUNT mode or in WRITE mode.
This can be used in implementations of DoBuild().
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
The documentation for this class was generated from the following files: