Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # -*- perl -*- |
2 | ||
3 | package Midas::Globals; | |
4 | ||
5 | require Exporter; | |
6 | ||
7 | our @ISA = qw(Exporter); | |
8 | our @EXPORT = qw( $STATE %CONFIG $VASIZE $RASIZE $PASIZE $CONFIG_FILE | |
9 | %MapAttr_Settable %MapAttr_FieldMax %MapAttr_FieldWidth | |
10 | clear_globals $PROJECT ); | |
11 | ||
12 | ||
13 | our $STATE; | |
14 | our %CONFIG; | |
15 | our $CONFIG_FILE = 'midasconfig.pl'; | |
16 | our $PROJECT = exists $ENV{PROJECT} ? $ENV{PROJECT} : undef; | |
17 | ||
18 | our $VASIZE; | |
19 | our $RASIZE; | |
20 | our $PASIZE; | |
21 | our %MapAttr_Settable; | |
22 | our %MapAttr_FieldMax; | |
23 | our %MapAttr_FieldWidth; | |
24 | ||
25 | sub clear_globals { undef $STATE; undef %CONFIG; | |
26 | undef $VASIZE; undef $RASIZE; undef $PASIZE; | |
27 | undef %MapAttr_Settable; | |
28 | undef %MapAttr_FieldMax; | |
29 | undef %MapAttr_FieldWidth; | |
30 | $CONFIG_FILE = 'midasconfig.pl'; | |
31 | $PROJECT = exists $ENV{PROJECT} ? $ENV{PROJECT} : undef; | |
32 | } | |
33 | ||
34 | 1; |