2
Copyright (C) 2008 Alexey Torkhov <atorkhov@gmail.com>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
#ifndef EMBEROGRE_GUIADAPTERBINDINGS_H
20
#define EMBEROGRE_GUIADAPTERBINDINGS_H
22
#include "components/ogre/EmberOgrePrerequisites.h"
23
#include "framework/tinyxml/tinyxml.h"
24
#include <Atlas/Message/Element.h>
29
* Contains bindings of one placeholder to many GUI adapters.
31
class GUIAdapterBindings
42
virtual ~GUIAdapterBindings();
45
* Returns bound function
47
const std::string& getFunc();
52
void setFunc(std::string func);
57
void addAdapter(std::string adapterName);
60
* Return adapters list
62
std::vector<std::string>& getAdapters();
65
* Associates this bindings with XML element
67
void associateXmlElement(TiXmlNode& element);
70
* Sets value to associated element
72
void setValue(Atlas::Message::Element& val);
75
* Helper function, converting Atlas node into TinyXml node
77
static TiXmlNode* convertAtlasToXml(Atlas::Message::Element& val);
86
* List of bound adapters.
88
std::vector<std::string> mAdapters;
91
* Associated XML element