7 |
|
#ifndef _Person_hpp_ |
8 |
|
#define _Person_hpp_ |
9 |
|
|
10 |
+ |
#ifdef __FreeBSD__ |
11 |
+ |
#include <menes-dbi/connection.hpp> |
12 |
+ |
#include <menes-dbi/resultset.hpp> |
13 |
+ |
|
14 |
+ |
#include "Smersh.hpp" |
15 |
+ |
#else |
16 |
|
#include <pstream.h> |
17 |
|
|
18 |
|
using namespace redi; |
19 |
|
|
20 |
|
#include "Matcher.hpp" |
21 |
+ |
#endif |
22 |
|
|
23 |
|
class Person |
24 |
|
{ |
25 |
|
private: |
26 |
+ |
#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 |
33 |
|
string name; |
34 |
|
vector<Person> multiple; |
35 |
|
void query(const string& sn); |