line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODULE = Geo::Geos PACKAGE = Geo::Geos::Dimension |
2
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
string toDimensionSymbol(int value) { |
5
|
7
|
100
|
|
|
|
|
char c = Dimension::toDimensionSymbol(value); |
6
|
6
|
50
|
|
|
|
|
RETVAL = c; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
int toDimensionValue(string value) { |
10
|
8
|
100
|
|
|
|
|
if (value.size() != 1) throw "string of one char is expected"; |
11
|
7
|
50
|
|
|
|
|
RETVAL = Dimension::toDimensionValue(value[0]); |
|
|
100
|
|
|
|
|
|
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
BOOT { |
15
|
92
|
50
|
|
|
|
|
auto this_stash = Stash(__PACKAGE__); |
16
|
368
|
50
|
|
|
|
|
xs::exp::create_constants(this_stash, { |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
17
|
|
|
|
|
|
|
{"TYPE_DONTCARE", Dimension::DimensionType::DONTCARE}, |
18
|
|
|
|
|
|
|
{"TYPE_True", Dimension::DimensionType::True}, |
19
|
|
|
|
|
|
|
{"TYPE_False", Dimension::DimensionType::False}, |
20
|
|
|
|
|
|
|
{"TYPE_P", Dimension::DimensionType::P}, |
21
|
|
|
|
|
|
|
{"TYPE_L", Dimension::DimensionType::L}, |
22
|
|
|
|
|
|
|
{"TYPE_A", Dimension::DimensionType::A} |
23
|
322
|
50
|
|
|
|
|
}); |
24
|
46
|
50
|
|
|
|
|
xs::exp::autoexport(this_stash); |
|
|
50
|
|
|
|
|
|
25
|
|
|
|
|
|
|
} |