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

« back to all changes in this revision

Viewing changes to COLLADAStreamWriter/include/COLLADASWLibraryNodes.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) 2011 Nathan Letwory
 
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
 
 
12
#ifndef __COLLADASTREAMWRITER_LIBRARY_NODES_H__
 
13
#define __COLLADASTREAMWRITER_LIBRARY_NODES_H__
 
14
 
 
15
#include "COLLADASWPrerequisites.h"
 
16
#include "COLLADASWLibrary.h"
 
17
 
 
18
namespace COLLADASW
 
19
{
 
20
 
 
21
        /** Class to simplify the creation of @a \<library_nodes\> and @a \<node\>'s*/
 
22
 
 
23
        class LibraryNodes : public Library
 
24
        {
 
25
 
 
26
        public:
 
27
                /** Constructor
 
28
                @param streamWriter The stream the @a \<library_nodes\> and @a \<node\>'s
 
29
                should be written to.
 
30
                */
 
31
                LibraryNodes ( StreamWriter* streamWriter );
 
32
 
 
33
                /** Destructor*/
 
34
                virtual ~LibraryNodes() {}
 
35
 
 
36
        protected:
 
37
                /** Writes the opening @a \<node\> tag and, if necessary the opening @a \<library_nodes\> tag.
 
38
                closeNode() must be use to close the opened tags.
 
39
                @param id the id of the node*/
 
40
                void openNode ( const String& nodeId = EMPTY_STRING, const String& nodeName = EMPTY_STRING );
 
41
 
 
42
                /** Closes the tag opened by openNode()*/
 
43
                void closeNode();
 
44
 
 
45
        private:
 
46
                TagCloser mCurrentNodeCloser;  //!< Current <node> tag closer.
 
47
        };
 
48
 
 
49
}
 
50
 
 
51
#endif //__COLLADASTREAMWRITER_LIBRARY_NODES_H__