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.

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

mercurial