|
SilverLining 2.36
|
A class factory for CloudLayer objects. More...
#include <CloudLayerFactory.h>


Static Public Member Functions | |
| static CloudLayer *SILVERLINING_API | Create (CloudTypes layerType) |
| Instantiate a CloudLayer for a given cloud type. | |
| static bool SILVERLINING_API | Serialize (CloudLayer *layer, std::ostream &stream) |
| Flattens a cloud layer to a stream buffer. | |
| static CloudLayer *SILVERLINING_API | Unserialize (const Atmosphere &atm, std::istream &stream) |
| Restores a cloud layer from a stream buffer written with Serialize() | |
A class factory for CloudLayer objects.
Call CloudLayerFactory::Create to instantiate a CloudLayer object, which may then be configured, seeded, and submitted to the AtmosphericConditions. CloudLayer is a virtual base class, so this is the only mechanism for creating specific cloud layer types.
| static CloudLayer* SILVERLINING_API SilverLining::CloudLayerFactory::Create | ( | CloudTypes | layerType | ) | [static] |
Instantiate a CloudLayer for a given cloud type.
Currently supported CloudTypes include:
| layerType | The type of cloud deck to create, must be of the CloudTypes enumeration. |
| static bool SILVERLINING_API SilverLining::CloudLayerFactory::Serialize | ( | CloudLayer * | layer, |
| std::ostream & | stream | ||
| ) | [static] |
Flattens a cloud layer to a stream buffer.
1.7.3