GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XmlHelper.hpp
Go to the documentation of this file.
1 #ifndef RADIX_XMLHELPER_HPP
2 #define RADIX_XMLHELPER_HPP
3 
4 #include <string>
5 
6 #include <tinyxml2.h>
7 
9 #include <radix/Entity.hpp>
10 
11 namespace radix {
12 
13 class XmlHelper {
14 public:
15  static void pushAttributeVertexToVector(tinyxml2::XMLElement *xmlElement,
16  Vector3f &targetVector);
17  static std::string mandatoryAttributeMessage;
18  static std::string invalidElementMessage;
19  static void throwMandatoryAttributeException(const std::string &message);
20  static void extractPosition(tinyxml2::XMLElement *xmlElement, Vector3f &position);
21  static void extractColor(tinyxml2::XMLElement *xmlElement, Vector3f &color);
22  static void extractRotation(tinyxml2::XMLElement *xmlElement, Vector3f &rotation);
23  static void extractScale(tinyxml2::XMLElement *xmlElement, Vector3f &scale);
24  static void extractTriggerActions(Entity& trigger, tinyxml2::XMLElement* xmlElement);
25 };
26 
27 } /* namespace radix */
28 
29 #endif /* RADIX_XMLHELPER_HPP */
static void extractRotation(tinyxml2::XMLElement *xmlElement, Vector3f &rotation)
Definition: XmlHelper.cpp:49
static void extractScale(tinyxml2::XMLElement *xmlElement, Vector3f &scale)
Definition: XmlHelper.cpp:75
Definition: GameController.hpp:7
static std::string invalidElementMessage
Definition: XmlHelper.hpp:18
static void extractPosition(tinyxml2::XMLElement *xmlElement, Vector3f &position)
Definition: XmlHelper.cpp:45
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
static void pushAttributeVertexToVector(tinyxml2::XMLElement *xmlElement, Vector3f &targetVector)
Pushes vector coordinates from an XML-element to a Vector3f.
Definition: XmlHelper.cpp:22
static void extractColor(tinyxml2::XMLElement *xmlElement, Vector3f &color)
Definition: XmlHelper.cpp:62
static void throwMandatoryAttributeException(const std::string &message)
Definition: XmlHelper.cpp:41
static std::string mandatoryAttributeMessage
Definition: XmlHelper.hpp:17
Definition: XmlHelper.hpp:13
static void extractTriggerActions(Entity &trigger, tinyxml2::XMLElement *xmlElement)
Definition: XmlHelper.cpp:79
3-dimensional float-based vector/point storage and manipulation struct
Definition: Vector3f.hpp:27