parser/xml/src/nsSAXAttributes.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef nsSAXAttributes_h__
michael@0 7 #define nsSAXAttributes_h__
michael@0 8
michael@0 9 #include "nsISupports.h"
michael@0 10 #include "nsISAXAttributes.h"
michael@0 11 #include "nsISAXMutableAttributes.h"
michael@0 12 #include "nsTArray.h"
michael@0 13 #include "nsString.h"
michael@0 14 #include "mozilla/Attributes.h"
michael@0 15
michael@0 16 #define NS_SAXATTRIBUTES_CONTRACTID "@mozilla.org/saxparser/attributes;1"
michael@0 17 #define NS_SAXATTRIBUTES_CID \
michael@0 18 {/* {7bb40992-77eb-43db-9a4e-39d3bcc483ae}*/ \
michael@0 19 0x7bb40992, 0x77eb, 0x43db, \
michael@0 20 { 0x9a, 0x4e, 0x39, 0xd3, 0xbc, 0xc3, 0x83, 0xae} }
michael@0 21
michael@0 22 struct SAXAttr
michael@0 23 {
michael@0 24 nsString uri;
michael@0 25 nsString localName;
michael@0 26 nsString qName;
michael@0 27 nsString type;
michael@0 28 nsString value;
michael@0 29 };
michael@0 30
michael@0 31 class nsSAXAttributes MOZ_FINAL : public nsISAXMutableAttributes
michael@0 32 {
michael@0 33 public:
michael@0 34 NS_DECL_ISUPPORTS
michael@0 35 NS_DECL_NSISAXATTRIBUTES
michael@0 36 NS_DECL_NSISAXMUTABLEATTRIBUTES
michael@0 37
michael@0 38 private:
michael@0 39 nsTArray<SAXAttr> mAttrs;
michael@0 40 };
michael@0 41
michael@0 42 #endif // nsSAXAttributes_h__

mercurial