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