Simple SFML GUI  0.2a
StringConvertible.hpp
1 #ifndef STRINGCONVERTIBLE_HPP
2 #define STRINGCONVERTIBLE_HPP
3 
4 #include <string>
5 #include <memory>
6 
8 public:
9  virtual ~StringConvertible() = default;
10  virtual std::string toString() = 0;
11  virtual bool fromString(const std::string&) = 0;
12 };
13 
14 typedef std::shared_ptr<StringConvertible> StringConvertiblePtr;
15 
16 #endif // STRINGCONVERTIBLE_HPP
Definition: StringConvertible.hpp:7