7 |
|
#ifndef _Person_hpp_ |
8 |
|
#define _Person_hpp_ |
9 |
|
|
10 |
– |
#ifdef __FreeBSD__ |
10 |
|
#include <menes-dbi/connection.hpp> |
11 |
|
#include <menes-dbi/resultset.hpp> |
12 |
|
|
13 |
|
#include "Smersh.hpp" |
15 |
– |
#else |
16 |
– |
#include <pstream.h> |
17 |
– |
|
18 |
– |
using namespace redi; |
19 |
– |
|
20 |
– |
#include "Matcher.hpp" |
21 |
– |
#endif |
14 |
|
|
15 |
|
class Person |
16 |
|
{ |
17 |
|
private: |
18 |
< |
#ifdef __FreeBSD__ |
27 |
< |
static string user, db; |
28 |
< |
#else |
29 |
< |
static string file; |
30 |
< |
static vector<string> args; |
31 |
< |
static string separator, begin, end; |
32 |
< |
#endif |
18 |
> |
static string driver, host, user, password, db; |
19 |
|
string name; |
20 |
|
vector<Person> multiple; |
21 |
|
void query(const string& sn); |