diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-03-25 14:07:57 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-03-25 14:07:57 +0300 |
commit | 32abf5eca87795f4bf6fca1357a4e66a4403b17c (patch) | |
tree | 686fe4df5636e259d8db87885f48ba4a7ed5f6ac /source/blender/collada/ExtraTags.h | |
parent | 6d0859768883c96f303fa5be5c44e81f60d262a4 (diff) |
Add ExtraTags class for handling tags inside an extra block.
Diffstat (limited to 'source/blender/collada/ExtraTags.h')
-rw-r--r-- | source/blender/collada/ExtraTags.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/source/blender/collada/ExtraTags.h b/source/blender/collada/ExtraTags.h new file mode 100644 index 00000000000..09a86741481 --- /dev/null +++ b/source/blender/collada/ExtraTags.h @@ -0,0 +1,54 @@ +/* + * $Id$ + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Contributor(s): Nathan Letwory. + * + * ***** END GPL LICENSE BLOCK ***** + */ + +/** \file blender/collada/ExtraTags.h + * \ingroup collada + */ + +#include <string> +#include <map> +#include <vector> + +/** \brief Class for saving <extra> tags for a specific UniqueId. + */ +class ExtraTags +{ +public: + /** Constructor. */ + ExtraTags(const std::string profile); + + /** Destructor. */ + virtual ~ExtraTags(); + + /** Handle the beginning of an element. */ + bool addTag( const std::string tag, const std::string data); + +private: + /** Disable default copy constructor. */ + ExtraTags( const ExtraTags& pre ); + /** Disable default assignment operator. */ + const ExtraTags& operator= ( const ExtraTags& pre ); + + std::string profile; +}; |