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

« back to all changes in this revision

Viewing changes to COLLADAStreamWriter/include/COLLADASWExtra.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 COLLADAStreamWriter.
 
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 __COLLADASTREAMWRITER_EXTRA_H__
 
12
#define __COLLADASTREAMWRITER_EXTRA_H__
 
13
 
 
14
#include "COLLADASWPrerequisites.h"
 
15
#include "COLLADASWElementWriter.h"
 
16
#include <map>
 
17
 
 
18
namespace COLLADASW
 
19
{
 
20
 
 
21
    /** A class to add an Asset to the stream.*/
 
22
 
 
23
    class Extra : public ElementWriter
 
24
    {
 
25
 
 
26
    public:
 
27
        /** Constructor
 
28
        @param streamWriter The stream the asset should be written to.*/
 
29
        Extra ( StreamWriter* streamWriter ) : ElementWriter ( streamWriter ) {}
 
30
 
 
31
        /** Destructor*/
 
32
        virtual ~Extra() {}
 
33
 
 
34
        /** Opens the extra tag. */
 
35
        void openExtra ( const String &extraId="", const String &extraName="", const String &extraType="" );
 
36
 
 
37
        /** Closes the extra tag */
 
38
        void closeExtra();
 
39
 
 
40
    private:
 
41
 
 
42
        /** Used to close the current extra. */
 
43
        TagCloser mExtraCloser;
 
44
    };
 
45
 
 
46
} //namespace COLLADASW
 
47
 
 
48
 
 
49
#endif //__COLLADASTREAMWRITER_EXTRA_H__