#include <iTargetedIO.h>
Public Member Functions |
|
virtual void | AddSaveTarget (int targetIndex, ReferenceTarget *rt)=0 |
This is used when a preset is saved.
|
|
virtual ReferenceTarget * | GetSaveTarget (int targetIndex)=0 |
This is used when a preset is loaded.
|
|
virtual int | SaveToFile (const MCHAR *fileName, FileIOType context)=0 |
This is used internally and should not be
called by developers. |
|
virtual int | SaveToFile (MCHAR *fileName, FileIOType context) |
virtual int | LoadFromFile (const MCHAR *fileName, FileIOType context)=0 |
This is used internally and should not be
called by developers. |
|
virtual int | LoadFromFile (MCHAR *fileName, FileIOType context) |
virtual void | Store (int targetIndex, ReferenceTarget *rt)=0 |
Allows the renderer to preserve a
ReferenceTarget object before a preset is loaded. |
|
virtual ReferenceTarget * | Retrieve (int targetIndex)=0 |
returns a referenceTarget that was
previously saved with
Store(). |
virtual void AddSaveTarget | ( | int | targetIndex, |
ReferenceTarget * | rt | ||
) | [pure virtual] |
This is used when a preset is saved.
It is possible for the user to choose some categories for the preset without selecting the renderer itself. In this case the renderer is NOT part of the preset and its Load() method is not called when the preset is loaded. Other categories defined by the renderer might still be saved in the preset. For this reason, it is important that each category be separate a ReferenceTarget with its own Load() and Save().
targetIndex | - a category ID number as determined by the renderer. |
rt | - the object which embodies this category of parameters. |
virtual ReferenceTarget* GetSaveTarget | ( | int | targetIndex | ) | [pure virtual] |
This is used when a preset is loaded.
The renderer can then copy this loaded set of parameters into its own active set. As described above, the renderer might not have its Load() method called when the preset is loaded, so so the renderer must take responsibility to call GetSaveTarget() and manually copy its parameters out of this object.
targetIndex | - A category ID number as determined by the renderer. |
virtual int SaveToFile | ( | const MCHAR * | fileName, |
FileIOType | context | ||
) | [pure virtual] |
This is used internally and should not be called by developers.
virtual int SaveToFile | ( | MCHAR * | fileName, |
FileIOType | context | ||
) | [inline, virtual] |
{ return SaveToFile(const_cast<const MCHAR*>(fileName), context); }
virtual int LoadFromFile | ( | const MCHAR * | fileName, |
FileIOType | context | ||
) | [pure virtual] |
This is used internally and should not be called by developers.
virtual int LoadFromFile | ( | MCHAR * | fileName, |
FileIOType | context | ||
) | [inline, virtual] |
{ return LoadFromFile(const_cast<const MCHAR*>(fileName), context); }
virtual void Store | ( | int | targetIndex, |
ReferenceTarget * | rt | ||
) | [pure virtual] |
Allows the renderer to preserve a ReferenceTarget object before a preset is loaded.
these utility methods can be used by renderers to hang on to reference targets between the RenderPresetsPreLoad and RenderPresetsPostLoad calls. This is needed when the user has chosen to save the renderer in the preset, but NOT all of its parameters. In this case the renderer's Load() will be called which may result in loading parameters that the user did not want as part of the preset. If the renderer sees that a certain category is not being loaded, it can Store() that object before the load and Retrieve() it afterwards, restoring its active set of parameters to their correct value.
targetIndex | - A category ID number as determined by the renderer. |
rt | - the object which embodies this category of parameters. |
virtual ReferenceTarget* Retrieve | ( | int | targetIndex | ) | [pure virtual] |
returns a referenceTarget that was previously saved with Store().
these utility methods can be used by renderers to hang on to reference targets between the RenderPresetsPreLoad and RenderPresetsPostLoad calls.
targetIndex | - A category ID number as determined by the renderer. |