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

« back to all changes in this revision

Viewing changes to COLLADAFramework/include/COLLADAFWILoader.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 COLLADAFramework.
 
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 __COLLADAFW_ILOADER_H__
 
12
#define __COLLADAFW_ILOADER_H__
 
13
 
 
14
#include "COLLADAFWPrerequisites.h"
 
15
 
 
16
 
 
17
namespace COLLADAFW
 
18
{
 
19
        class IWriter;
 
20
 
 
21
        class ILoader   
 
22
        {
 
23
        private:
 
24
        
 
25
        public:
 
26
 
 
27
        ILoader() {};
 
28
        virtual ~ILoader() {};
 
29
 
 
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;
 
35
 
 
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;
 
43
        
 
44
        private:
 
45
 
 
46
        /** Disable default copy ctor. */
 
47
                ILoader( const ILoader& pre );
 
48
 
 
49
        /** Disable default assignment operator. */
 
50
                const ILoader& operator= ( const ILoader& pre );
 
51
 
 
52
        };
 
53
} // namespace COLLADAFW
 
54
 
 
55
#endif // __COLLADAFW_LOADER_H__