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

« back to all changes in this revision

Viewing changes to COLLADAStreamWriter/include/COLLADASWLibrary.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_LIBRARY_H__
 
12
#define __COLLADASTREAMWRITER_LIBRARY_H__
 
13
 
 
14
#include "COLLADASWPrerequisites.h"
 
15
#include "COLLADASWElementWriter.h"
 
16
 
 
17
namespace COLLADASW
 
18
{
 
19
 
 
20
    /** Base class for all libraries*/
 
21
    class Library : public ElementWriter
 
22
    {
 
23
 
 
24
    public:
 
25
        /** Constructor
 
26
        @param streamWriter the stream writer the library should be written to
 
27
        */
 
28
        Library ( StreamWriter* streamWriter, const String& name );
 
29
 
 
30
        /** Destructor*/
 
31
        virtual ~Library() {}
 
32
 
 
33
        /** Closes the @a \<library_geometry\> tag.
 
34
        This function should be called after the last geometry has been added*/
 
35
        void closeLibrary();
 
36
 
 
37
        /** Opens the library.
 
38
        This function must be called before the first geometry is added*/
 
39
        void openLibrary();
 
40
 
 
41
    private:
 
42
        TagCloser mLibraryCloser;    ///< Used to close the library  tag
 
43
        bool mLibraryOpen;      ///< true, if a library has been open and not closed. false otherwise.
 
44
        const String& mName;
 
45
 
 
46
 
 
47
    };
 
48
 
 
49
} //namespace COLLADASW
 
50
 
 
51
#endif //__COLLADASTREAMWRITER_LIBRARY_H__