blob: 65fc2d0c7859cb4a0672b0232b1a6f540b82549b (
plain)
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
|
class PdfName:
def __init__(self, name, abr=''):
self.fName = name
self.fAbr = abr
def toCpp(self):
return '\"' + self.fName + '\"'
class PdfString:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return '\"' + self.fValue + '\"'
class PdfInteger:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return str(self.fValue)
class PdfNumber:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return str(self.fValue)
class PdfString:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return self.fValue
class PdfBoolean:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return self.fValue
class CppNull:
def toCpp(self):
return 'NULL'
|