| * Copyright 2006 The Android Open Source Project |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #ifndef SkBML_WXMLParser_DEFINED |
| #define SkBML_WXMLParser_DEFINED |
| class BML_WXMLParser : public SkXMLParser { |
| BML_WXMLParser(SkWStream& writer); |
| virtual ~BML_WXMLParser(); |
| static void Write(SkStream& s, const char filename[]); |
| SkDEBUGCODE(static void UnitTest();) |
| virtual bool onAddAttribute(const char name[], const char value[]); |
| virtual bool onEndElement(const char name[]); |
| virtual bool onStartElement(const char name[]); |
| BML_WXMLParser& operator=(const BML_WXMLParser& src); |
| int fElemsCount, fElemsReused; |
| int fAttrsCount, fNamesReused, fValuesReused; |
| // important that these are U8, so we get automatic wrap-around |
| U8 fNextElem, fNextAttrName, fNextAttrValue; |
| #endif // SkBML_WXMLParser_DEFINED |