2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAFramework.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
11
#ifndef __COLLADAFW_ILOADER_H__
12
#define __COLLADAFW_ILOADER_H__
14
#include "COLLADAFWPrerequisites.h"
28
virtual ~ILoader() {};
30
/** Starts loading the model and feeds the writer with data.
31
@param fileName The name of the file that should be loaded.
32
@param writer The writer that should be fed with data.
33
@return True, if loading succeeded, false otherwise.*/
34
virtual bool loadDocument(const String& fileName, IWriter* writer)=0;
36
/** Starts loading the model and feeds the writer with data.
37
@param uri The URI associated with the buffer.
38
@param buffer A pointer to a document buffer that should be loaded.
39
@param length The length of the buffer in bytes.
40
@param writer The writer that should be fed with data.
41
@return True, if loading succeeded, false otherwise.*/
42
virtual bool loadDocument(const String& uri, const char* buffer, int length, IWriter* writer)=0;
46
/** Disable default copy ctor. */
47
ILoader( const ILoader& pre );
49
/** Disable default assignment operator. */
50
const ILoader& operator= ( const ILoader& pre );
53
} // namespace COLLADAFW
55
#endif // __COLLADAFW_LOADER_H__