#include <ImportInterfaceC.h>
Public Methods | |
ImportInterfaceC (PajaSystem::DeviceContextC *pContext, PajaSystem::TimeContextC *pTimeContext, FileListC *pFileList, PluginClass::FactoryC *pFactory, Import::FileHandleC *pCaller) | |
Default constructor (used internally). | |
virtual | ~ImportInterfaceC () |
Default destructor (used internally). | |
virtual FileHandleC * | request_import (const char *szName, const PluginClass::SuperClassIdC &rSuperFilter, const PluginClass::ClassIdC &rClassFilter) |
Imports requested file. | |
virtual void | initialize_importable (Import::ImportableI *pImp, PajaTypes::uint32 ui32Reason) |
Used internally. | |
virtual FileListC * | get_filelist () |
Returns pointer to the file list. | |
virtual void | add_search_directory (const char *szDir) |
Adds search directory. | |
virtual void | add_common_dialog (PajaSystem::CommonDialogI *pDlg) |
Adds new common dialog to list. | |
virtual PajaSystem::CommonDialogI * | get_common_dialog (const PluginClass::ClassIdC &rClassID) |
Gets a common dialog based on the class ID. |
Import interface class is a tool class for importers. It's purpose is to enable the importers to import other files during the load. For example, a 3D file importer can request the interface to import it's textures.
This class is implemented by the system.
|
Default constructor (used internally).
|
|
Default destructor (used internally).
|
|
Adds new common dialog to list.
|
|
Adds search directory. When the request import is called, the file is first tried to load from the given path. If it's not found, then the file is tried to load from each search directory. |
|
Gets a common dialog based on the class ID.
|
|
Returns pointer to the file list.
|
|
Used internally.
|
|
Imports requested file. Request a import for a specified file. File importer filters can be used range the number of possible importers which could match the file extension. For example if it is known that the file must be image, SUPERCLASS_IMAGE could be passed as the rSuperFilter argument. If a filter (class Id of super class ID) isn't used NULL_CLASSID or NULL_SUPERCLASS should be passed as argument. Example: // Request import for a image. FileHandleC* pHandle = m_pImpInterface->request_import( szFileName, SUPERCLASS_IMAGE, NULL_CLASSID ); |