1
2
3
4
5
6 import os
7 import pygccxml
8 import algorithm
9 import code_creator
10 import declaration_based
11 import registration_based
12 from pygccxml import declarations
13 from pyplusplus import code_repository
14 from pyplusplus import decl_wrappers
15
16 -class global_variable_base_t( registration_based.registration_based_t
17 , declaration_based.declaration_based_t ):
18 """
19 Base class for all global variables code creators. Mainly exists to
20 simplify file writers algorithms.
21 """
22 - def __init__(self, variable, wrapper=None ):
26
30 self._wrapper = new_wrapper
31 wrapper = property( _get_wrapper, _set_wrapper )
32
35
37 """
38 Creates boost.python code that exposes global variable.
39 """
42