~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to COLLADASaxFrameworkLoader/include/COLLADASaxFWLFilePartLoader.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of COLLADASaxFrameworkLoader.
 
5
 
 
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
 
9
*/
 
10
 
 
11
#ifndef __COLLADASAXFWL_FILEPARTLOADER_H__
 
12
#define __COLLADASAXFWL_FILEPARTLOADER_H__
 
13
 
 
14
#include "COLLADASaxFWLPrerequisites.h"
 
15
#include "COLLADASaxFWLIFilePartLoader.h"
 
16
 
 
17
 
 
18
 
 
19
namespace COLLADASaxFWL
 
20
{
 
21
 
 
22
    /** Base class for all loader that import only a part of the file */
 
23
        class FilePartLoader : public IFilePartLoader
 
24
        {
 
25
        private:
 
26
 
 
27
        IFilePartLoader* mCallingFilePartLoader;
 
28
        
 
29
        public:
 
30
 
 
31
        /** Constructor. */
 
32
                FilePartLoader(IFilePartLoader* callingFilePartLoader);
 
33
 
 
34
        /** Destructor. */
 
35
                virtual ~FilePartLoader();
 
36
 
 
37
        public:
 
38
                /** Returns a pointer to the collada loader. */
 
39
                Loader* getColladaLoader();
 
40
 
 
41
                /** Returns a const pointer to the collada document. */
 
42
                const Loader* getColladaLoader() const;
 
43
 
 
44
                /** Returns a pointer to the file loader. */
 
45
                FileLoader* getFileLoader();
 
46
 
 
47
                /** Returns a pointer to the file loader. */
 
48
                const FileLoader* getFileLoader() const;
 
49
 
 
50
                /** A combination of ObjectFlags, indicating which objects should be parsed during the 
 
51
                parse process.*/
 
52
                int getObjectFlags() const;
 
53
 
 
54
 
 
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 );
 
59
 
 
60
 
 
61
 
 
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 .*/
 
64
                void finish();
 
65
 
 
66
                /** Returns the absolute uri of the currently parsed file*/
 
67
                const COLLADABU::URI& getFileUri();
 
68
 
 
69
 
 
70
 
 
71
        private:
 
72
 
 
73
        /** Disable default copy ctor. */
 
74
                FilePartLoader( const FilePartLoader& pre );
 
75
 
 
76
        /** Disable default assignment operator. */
 
77
                const FilePartLoader& operator= ( const FilePartLoader& pre );
 
78
 
 
79
        };
 
80
 
 
81
} // namespace COLLADASAXFWL
 
82
 
 
83
#endif // __COLLADASAXFWL_FILEPARTLOADER_H__