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

« back to all changes in this revision

Viewing changes to GeneratedSaxParser/include/GeneratedSaxParserSaxParser.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 GeneratedSaxParser.
 
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 __COLLADAPARSER_SAXPARSER_H__
 
12
#define __COLLADAPARSER_SAXPARSER_H__
 
13
 
 
14
#include "GeneratedSaxParserPrerequisites.h"
 
15
 
 
16
 
 
17
namespace GeneratedSaxParser
 
18
{
 
19
        class Parser;
 
20
 
 
21
        class SaxParser
 
22
        {
 
23
 
 
24
        private:
 
25
                Parser* mParser;
 
26
        public:
 
27
                SaxParser(Parser* parser);
 
28
                virtual ~SaxParser();
 
29
                
 
30
                virtual bool parseFile(const char* fileName)=0;
 
31
                virtual bool parseBuffer(const char* uri, const char* buffer, int length)=0;
 
32
 
 
33
                virtual size_t getLineNumer()const=0;
 
34
                virtual size_t getColumnNumer()const=0;
 
35
 
 
36
                Parser* getParser(){return mParser;}
 
37
        void setParser( Parser* parser );
 
38
 
 
39
        private:
 
40
        /** Disable default copy ctor. */
 
41
                SaxParser( const SaxParser& pre );
 
42
        /** Disable default assignment operator. */
 
43
                const SaxParser& operator= ( const SaxParser& pre );
 
44
 
 
45
        };
 
46
} // namespace COLLADAPARSER
 
47
 
 
48
#endif // __COLLADAPARSER_SAXPARSER_H__