3
// header information for i/o functions
4
/* Simple class designed to hold env, DBs and global maps.
5
* When it is used by remote client, env and DBs are not opened.
6
* Maps are set up by data transferred from server. */
7
// Copyright (c) 1998-2010 by The VoxBo Development Team
9
// This file is part of VoxBo
11
// VoxBo is free software: you can redistribute it and/or modify it
12
// under the terms of the GNU General Public License as published by
13
// the Free Software Foundation, either version 3 of the License, or
14
// (at your option) any later version.
16
// VoxBo is distributed in the hope that it will be useful, but
17
// WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
// General Public License for more details.
21
// You should have received a copy of the GNU General Public License
22
// along with VoxBo. If not, see <http://www.gnu.org/licenses/>.
24
// For general information on VoxBo, including the latest complete
25
// source code and binary distributions, manual, and associated files,
26
// see the VoxBo home page at: http://www.voxbo.org/
28
// original version written by Dongbo Hu
42
void setDbNames(string dirname = "");
46
int readTypes(string fname);
47
int readViews(string fname);
48
int readScorenames(string fname);
49
// int32 getScoreNames(DbTxn*);
50
void add_scorename(const DBscorename&);
53
int initDB(string inputDir, string admin_passwd, uint32 id_start);
57
myDB sysDB, userDB, userGrpDB, userRelationDB, permDB;
58
myDB scoreNameDB, sessionDB, scoreValueDB, patientScoreDB;
59
myDB contactDB, patientDB, patientListDB;
60
//myDB patientGrpDB, patientGrpMemDB;
62
myDB viewDB, viewEntryDB; // not used right now
63
myDB regionNameDB, namespaceDB, synonymDB, regionRelationDB;
68
string scoreNameFilename;
69
string sysDbName, userDbName, permissionDbName;
70
string scoreNameDbName, sessionDbName, scoreValueDbName, patientScoreDbName;
71
string regionDbName, synonymDbName, regionRelationDbName, namespaceDbName;
72
string patientDbName, patientListDbName;
75
map<string,DBtype> typemap; // access types by name
76
map<string,DBscorename> scorenames; // all the possible score names
77
// map<string,string> testmap; // map test (or node) name onto scorename id
78
multimap<string,string> scorenamechildren; // map each scorename to its children
79
map<string,DBviewspec> viewspecs;
80
map<int32,regionRec> regionNameMap;
81
map<int32,synonymRec> synonymMap;
82
map<int32,regionRelationRec> regionRelationMap;