YAPOG  0.0.1
Yet Another Pokemon Online Game
RectWriter.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_RECTWRITER_HPP
2 # define YAPOG_RECTWRITER_HPP
3 
4 # include <SFML/Graphics/Rect.hpp>
5 
6 # include "YAPOG/Macros.hpp"
8 
9 namespace yap
10 {
11  template <typename T>
13  {
15 
16  public:
17 
18  explicit RectWriter (const sf::Rect<T>& rect);
19  virtual ~RectWriter ();
20 
21  virtual void Visit (XmlWriter& visitable);
22  virtual void Visit (IPacket& visitable);
23 
24  private:
25 
26  const sf::Rect<T>& rect_;
27  };
28 } // namespace yap
29 
31 
32 #endif // YAPOG_RECTWRITER_HPP