2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADASaxFrameworkLoader.
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 __COLLADASAXFWL_FILEPARTLOADER_H__
12
#define __COLLADASAXFWL_FILEPARTLOADER_H__
14
#include "COLLADASaxFWLPrerequisites.h"
15
#include "COLLADASaxFWLIFilePartLoader.h"
19
namespace COLLADASaxFWL
22
/** Base class for all loader that import only a part of the file */
23
class FilePartLoader : public IFilePartLoader
27
IFilePartLoader* mCallingFilePartLoader;
32
FilePartLoader(IFilePartLoader* callingFilePartLoader);
35
virtual ~FilePartLoader();
38
/** Returns a pointer to the collada loader. */
39
Loader* getColladaLoader();
41
/** Returns a const pointer to the collada document. */
42
const Loader* getColladaLoader() const;
44
/** Returns a pointer to the file loader. */
45
FileLoader* getFileLoader();
47
/** Returns a pointer to the file loader. */
48
const FileLoader* getFileLoader() const;
50
/** A combination of ObjectFlags, indicating which objects should be parsed during the
52
int getObjectFlags() const;
55
/** Sets the parser to @a parserToBeSet.*/
56
virtual void setParser( COLLADASaxFWL14::ColladaParserAutoGen14* parserToBeSet );
57
/** Sets the parser to @a parserToBeSet.*/
58
virtual void setParser( COLLADASaxFWL15::ColladaParserAutoGen15* parserToBeSet );
62
/** Should be called by a FilePartLoader to indicate that it has finish loading
63
the part of the model and cannot handle the next sax callback .*/
66
/** Returns the absolute uri of the currently parsed file*/
67
const COLLADABU::URI& getFileUri();
73
/** Disable default copy ctor. */
74
FilePartLoader( const FilePartLoader& pre );
76
/** Disable default assignment operator. */
77
const FilePartLoader& operator= ( const FilePartLoader& pre );
81
} // namespace COLLADASAXFWL
83
#endif // __COLLADASAXFWL_FILEPARTLOADER_H__