2
Copyright (c) 2011 Nathan Letwory
4
This file is part of COLLADAStreamWriter.
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
12
#ifndef __COLLADASTREAMWRITER_LIBRARY_NODES_H__
13
#define __COLLADASTREAMWRITER_LIBRARY_NODES_H__
15
#include "COLLADASWPrerequisites.h"
16
#include "COLLADASWLibrary.h"
21
/** Class to simplify the creation of @a \<library_nodes\> and @a \<node\>'s*/
23
class LibraryNodes : public Library
28
@param streamWriter The stream the @a \<library_nodes\> and @a \<node\>'s
31
LibraryNodes ( StreamWriter* streamWriter );
34
virtual ~LibraryNodes() {}
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 );
42
/** Closes the tag opened by openNode()*/
46
TagCloser mCurrentNodeCloser; //!< Current <node> tag closer.
51
#endif //__COLLADASTREAMWRITER_LIBRARY_NODES_H__