OLD | NEW |
| (Empty) |
1 #ifndef __DEFINED__SkPdfHexString | |
2 #define __DEFINED__SkPdfHexString | |
3 | |
4 #include "SkPdfUtils.h" | |
5 #include "SkPdfEnums_autogen.h" | |
6 #include "SkPdfArray_autogen.h" | |
7 #include "SkPdfString_autogen.h" | |
8 | |
9 class SkPdfHexString : public SkPdfString { | |
10 public: | |
11 virtual SkPdfObjectType getType() const { return kHexString_SkPdfObjectType;} | |
12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kHexStri
ng_SkPdfObjectType + 1);} | |
13 public: | |
14 virtual SkPdfHexString* asHexString() {return this;} | |
15 virtual const SkPdfHexString* asHexString() const {return this;} | |
16 | |
17 private: | |
18 public: | |
19 const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8
();} | |
20 private: | |
21 public: | |
22 SkPdfHexString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofo
Obj = NULL) : SkPdfString(podofoDoc, podofoObj) {} | |
23 | |
24 SkPdfHexString(const SkPdfHexString& from) : SkPdfString(from.fPodofoDoc, from
.fPodofoObj) {} | |
25 | |
26 virtual bool valid() const {return true;} | |
27 | |
28 SkPdfHexString& operator=(const SkPdfHexString& from) {this->fPodofoDoc = from
.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | |
29 | |
30 }; | |
31 | |
32 #endif // __DEFINED__SkPdfHexString | |
OLD | NEW |