tge/lib/maxsdk70/include/iTargetedIO.h
2017-04-17 06:17:10 -06:00

31 lines
848 B
C++
Executable File

/////////////////////////////////////////////////////////////////////////
//
//
// Targeted IO Utility
//
// Created 3-13-03: Tom Burke
//
#ifndef I_TARGETED_IO_H
#define I_TARGETED_IO_H
// includes
#include "sfx.h"
class ITargetedIO
{
public:
virtual void AddSaveTarget( int targetIndex, ReferenceTarget * rt ) = 0;
virtual ReferenceTarget * GetSaveTarget( int targetIndex ) = 0;
virtual int SaveToFile( TCHAR * fileName, FileIOType context ) = 0;
virtual int LoadFromFile( TCHAR * fileName, FileIOType context ) = 0;
// these utility methods can be used by renderers to hang on to reference targets between
// the RenderPresetsPreLoad and RenderPresetsPostLoad calls.
virtual void Store( int targetIndex, ReferenceTarget * rt ) = 0;
virtual ReferenceTarget * Retrieve( int targetIndex ) = 0;
};
#endif