YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
DatabaseManager.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_DATABASEMANAGER_HPP
2
# define YAPOG_DATABASEMANAGER_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/System/String.hpp
"
6
# include "
YAPOG/System/IO/Log/DatabaseLogger.hpp
"
7
# include "
YAPOG/System/Error/Exception.hpp
"
8
# include "
pgstream/pgstream.hpp
"
9
10
namespace
yap
11
{
12
class
YAPOG_LIB
DatabaseManager
13
{
14
DISALLOW_COPY
(
DatabaseManager
);
15
public
:
16
DatabaseManager
();
17
~
DatabaseManager
();
18
19
void
Connect ();
20
pgs::pg_cnx
& GetConnection ();
21
DatabaseLogger
& GetDatabaseLogger ();
22
void
SetLogStream (
OStream
& os);
23
private
:
24
pgs::pg_cnx
connection_
;
25
DatabaseLogger
*
dl_
;
26
};
27
}
// namespace yap
28
29
#endif // YAPOG_DATABASEMANAGER_HPP
YAPOG
include
YAPOG
Database
DatabaseManager.hpp
Generated on Mon Sep 17 2012 22:24:22 for YAPOG by
1.8.1.1