line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODE: INLINE |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
struct TimezoneRecipe03 { |
4
|
|
|
|
|
|
|
const char* get_name() const { return name; } |
5
|
|
|
|
|
|
|
static const TimezoneRecipe03& get_instance() { |
6
|
|
|
|
|
|
|
static TimezoneRecipe03* instance = new TimezoneRecipe03(); |
7
|
|
|
|
|
|
|
return *instance; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
private: |
10
|
|
|
|
|
|
|
TimezoneRecipe03() { name = "Europe/Minsk"; } |
11
|
|
|
|
|
|
|
const char* name; |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
namespace xs { |
15
|
|
|
|
|
|
|
template <> |
16
|
|
|
|
|
|
|
struct Typemap : TypemapObject { |
17
|
|
|
|
|
|
|
static std::string package () { return "MyTest::Cookbook::TimezoneRecipe03"; } |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
MODULE = MyTest::Cookbook PACKAGE = MyTest::Cookbook::TimezoneRecipe03 |
22
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
const char* TimezoneRecipe03::get_name() : const; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
const TimezoneRecipe03* get_instance() { RETVAL = &TimezoneRecipe03::get_instance(); } |