blob: a1fa7fb30db93997ab6eb836a838f4b2241e916d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef MYSQL_EMBEDDED_SERVER_H
#define MYSQL_EMBEDDED_SERVER_H
#include <string>
#include <vector>
#include <boost/filesystem/path.hpp>
#include <intrusivePtrBase.h>
#include <boost/intrusive_ptr.hpp>
namespace MySQL {
namespace Embedded {
class Server;
typedef boost::intrusive_ptr<Server> ServerPtr;
class Server : public IntrusivePtrBase {
public:
virtual ~Server();
static ServerPtr get(const boost::filesystem::path &, const std::vector<std::string> &);
static ServerPtr getMock(const boost::filesystem::path &);
protected:
Server(const boost::filesystem::path &, const std::vector<std::string> &);
const boost::filesystem::path path;
private:
static Server * instance;
};
class MockServer : public Server {
public:
MockServer(const boost::filesystem::path &);
void initialize();
public:
~MockServer();
};
}
}
#endif
|