YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
RectReader.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_RECTREADER_HPP
2
# define YAPOG_RECTREADER_HPP
3
4
# include <SFML/Graphics/Rect.hpp>
5
6
# include "
YAPOG/Macros.hpp
"
7
# include "
YAPOG/System/IO/BaseReaderVisitor.hpp
"
8
# include "
YAPOG/System/String.hpp
"
9
10
namespace
yap
11
{
12
template
<
typename
T>
13
class
RectReader
:
public
BaseReaderVisitor
14
{
15
DISALLOW_COPY
(
RectReader
);
16
17
public
:
18
19
explicit
RectReader
(sf::Rect<T>& rect);
20
RectReader
(sf::Rect<T>& rect,
const
String
& xmlRootNodeName);
21
virtual
~RectReader
();
22
23
virtual
void
Visit
(
XmlReader
& visitable);
24
virtual
void
Visit
(
IPacket
& visitable);
25
26
private
:
27
28
static
const
String
DEFAULT_XML_ROOT_NODE_NAME
;
29
30
sf::Rect<T>&
rect_
;
31
32
String
xmlRootNodeName_
;
33
};
34
}
// namespace yap
35
36
# include "
YAPOG/Graphics/RectReader.hxx
"
37
38
#endif // YAPOG_RECTREADER_HPP
YAPOG
include
YAPOG
Graphics
RectReader.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1