-
Notifications
You must be signed in to change notification settings - Fork 3
/
globals.cpp
74 lines (55 loc) · 2.46 KB
/
globals.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// --------------------------------------------------------------------
//
// This file is part of Luna.
//
// LUNA is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Luna is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Luna. If not, see <http://www.gnu.org/licenses/>.
//
// Please see LICENSE.txt for more details.
//
// --------------------------------------------------------------------
#include "luna.h"
globals global;
writer_t writer;
freezer_t freezer;
logger_t logger( "+++ luna" );
lunapi_t* lunapi_t::p_instance = NULL;
std::set<std::string> cmd_t::commands;
std::string cmd_t::input = "";
std::string cmd_t::cmdline_cmds = "";
std::string cmd_t::stout_file = "";
std::string cmd_t::stout_template = "";
bool cmd_t::append_stout_file = false;
bool cmd_t::has_indiv_wildcard = false;
bool cmd_t::plaintext_mode = false;
std::string cmd_t::plaintext_root = ".";
std::map<std::string,std::string> cmd_t::vars;
std::map<std::string,std::map<std::string,std::string> > cmd_t::ivars;
std::map<std::string,std::string> cmd_t::idmapper;
std::set<std::string> cmd_t::specials;
std::set<std::string> cmd_t::signallist;
std::map<std::string,std::string> cmd_t::label_aliases;
std::map<std::string,std::vector<std::string> > cmd_t::primary_alias;
std::map<std::string,std::string> cmd_t::primary_upper2orig;
// annotation remapping
// annotation map
std::map<std::string,std::string> nsrr_t::amap;
std::map<std::string,std::vector<std::string> > nsrr_t::bmap;
std::map<std::string,std::string> nsrr_t::pmap;
// turn off any remapping
//bool nsrr_t::do_remap = true;
// annot list acts as an annot white list
bool nsrr_t::whitelist = false;
bool nsrr_t::unmapped = false;
std::set<std::string> nsrr_t::edf_class;
bool nsrr_t::all_edf_class = false;