OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkXMLWriter_DEFINED | 8 #ifndef SkXMLWriter_DEFINED |
9 #define SkXMLWriter_DEFINED | 9 #define SkXMLWriter_DEFINED |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 }; | 62 }; |
63 | 63 |
64 class SkXMLStreamWriter : public SkXMLWriter { | 64 class SkXMLStreamWriter : public SkXMLWriter { |
65 public: | 65 public: |
66 SkXMLStreamWriter(SkWStream*); | 66 SkXMLStreamWriter(SkWStream*); |
67 virtual ~SkXMLStreamWriter(); | 67 virtual ~SkXMLStreamWriter(); |
68 virtual void writeHeader(); | 68 virtual void writeHeader(); |
69 SkDEBUGCODE(static void UnitTest();) | 69 SkDEBUGCODE(static void UnitTest();) |
70 | 70 |
71 protected: | 71 protected: |
72 void onStartElementLen(const char elem[], size_t length) SK_OVERRIDE; | 72 void onStartElementLen(const char elem[], size_t length) override; |
73 void onEndElement() SK_OVERRIDE; | 73 void onEndElement() override; |
74 void onAddAttributeLen(const char name[], const char value[], size_t length)
SK_OVERRIDE; | 74 void onAddAttributeLen(const char name[], const char value[], size_t length)
override; |
75 void onAddText(const char text[], size_t length) SK_OVERRIDE; | 75 void onAddText(const char text[], size_t length) override; |
76 | 76 |
77 private: | 77 private: |
78 SkWStream& fStream; | 78 SkWStream& fStream; |
79 }; | 79 }; |
80 | 80 |
81 class SkXMLParserWriter : public SkXMLWriter { | 81 class SkXMLParserWriter : public SkXMLWriter { |
82 public: | 82 public: |
83 SkXMLParserWriter(SkXMLParser*); | 83 SkXMLParserWriter(SkXMLParser*); |
84 virtual ~SkXMLParserWriter(); | 84 virtual ~SkXMLParserWriter(); |
85 protected: | 85 protected: |
86 virtual void onStartElementLen(const char elem[], size_t length); | 86 virtual void onStartElementLen(const char elem[], size_t length); |
87 virtual void onEndElement(); | 87 virtual void onEndElement(); |
88 virtual void onAddAttributeLen(const char name[], const char value[], size_t
length); | 88 virtual void onAddAttributeLen(const char name[], const char value[], size_t
length); |
89 virtual void onAddText(const char text[], size_t length) SK_OVERRIDE; | 89 virtual void onAddText(const char text[], size_t length) override; |
90 private: | 90 private: |
91 SkXMLParser& fParser; | 91 SkXMLParser& fParser; |
92 }; | 92 }; |
93 | 93 |
94 | 94 |
95 #endif | 95 #endif |
OLD | NEW |