OLD | NEW |
(Empty) | |
| 1 |
| 2 class PdfName: |
| 3 def __init__(self, name, abr=''): |
| 4 self.fName = name |
| 5 self.fAbr = abr |
| 6 |
| 7 def toCpp(self): |
| 8 return '\"' + self.fName + '\"' |
| 9 |
| 10 class PdfString: |
| 11 def __init__(self, value): |
| 12 self.fValue = value |
| 13 |
| 14 def toCpp(self): |
| 15 return '\"' + self.fValue + '\"' |
| 16 |
| 17 class PdfInteger: |
| 18 def __init__(self, value): |
| 19 self.fValue = value |
| 20 |
| 21 def toCpp(self): |
| 22 return str(self.fValue) |
| 23 |
| 24 class PdfNumber: |
| 25 def __init__(self, value): |
| 26 self.fValue = value |
| 27 |
| 28 def toCpp(self): |
| 29 return str(self.fValue) |
| 30 |
| 31 class PdfString: |
| 32 def __init__(self, value): |
| 33 self.fValue = value |
| 34 |
| 35 def toCpp(self): |
| 36 return self.fValue |
| 37 |
| 38 class PdfBoolean: |
| 39 def __init__(self, value): |
| 40 self.fValue = value |
| 41 |
| 42 def toCpp(self): |
| 43 return self.fValue |
| 44 |
| 45 class CppNull: |
| 46 def toCpp(self): |
| 47 return 'NULL' |
| 48 |
OLD | NEW |