Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/parser/xml/nsSAXAttributes.h
Line
Count
Source (jump to first uncovered line)
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/. */
5
6
#ifndef nsSAXAttributes_h__
7
#define nsSAXAttributes_h__
8
9
#include "nsISupports.h"
10
#include "nsISAXAttributes.h"
11
#include "nsTArray.h"
12
#include "nsString.h"
13
#include "mozilla/Attributes.h"
14
15
struct SAXAttr
16
{
17
  nsString uri;
18
  nsString localName;
19
  nsString qName;
20
  nsString type;
21
  nsString value;
22
};
23
24
class nsSAXAttributes final : public nsISAXAttributes
25
{
26
public:
27
  NS_DECL_ISUPPORTS
28
  NS_DECL_NSISAXATTRIBUTES
29
30
  nsresult AddAttribute(const nsAString &aURI,
31
                        const nsAString &aLocalName,
32
                        const nsAString &aQName,
33
                        const nsAString &aType,
34
                        const nsAString &aValue);
35
36
private:
37
0
  ~nsSAXAttributes() {}
38
  nsTArray<SAXAttr> mAttrs;
39
};
40
41
#endif // nsSAXAttributes_h__