Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00025
00028
00029 #ifndef THOR_TOSTRING_HPP
00030 #define THOR_TOSTRING_HPP
00031
00032
00033
00034
00035 #include <Thor/Config.hpp>
00036
00037 #include <Aurora/Tools/Exceptions.hpp>
00038
00039 #include <sstream>
00040
00041
00042 namespace sf
00043 {
00044
00045 class Color;
00046
00047 template <typename T>
00048 class Vector2;
00049
00050 template <typename T>
00051 class Vector3;
00052
00053 template <typename T>
00054 class Rect;
00055
00056 }
00057
00058
00059 namespace thor
00060 {
00061
00062 template <typename T>
00063 struct PolarVector2;
00064
00067
00070 std::string THOR_API toString(const sf::Color& color);
00071
00074 template <typename T>
00075 std::string toString(const sf::Vector2<T>& vector);
00076
00079 template <typename T>
00080 std::string toString(const sf::Vector3<T>& vector);
00081
00084 template <typename T>
00085 std::string toString(const sf::Rect<T>& rect);
00086
00089 template <typename T>
00090 std::string toString(const PolarVector2<T>& vector);
00091
00092
00095 class StringConversionException : public aurora::Exception
00096 {
00097
00098
00099 public:
00102 explicit StringConversionException(const std::string& message)
00103 : aurora::Exception(message)
00104 {
00105 }
00106 };
00107
00109
00110 }
00111
00112 #include <Thor/Graphics/Detail/ToString.inl>
00113 #endif // THOR_TOSTRING_HPP