]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprofng/src/DefaultHandler.h
1 /* Copyright (C) 2021-2024 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
22 * org/xml/sax/helpers/DefaultHandler.java
23 * Based on JavaTM 2 Platform Standard Ed. 5.0
26 #ifndef _DefaultHandler_h
27 #define _DefaultHandler_h
30 * org/xml/sax/Attributes.java
35 virtual ~Attributes () { };
37 virtual int getLength () = 0;
38 virtual const char *getQName (int index
) = 0;
39 virtual const char *getValue (int index
) = 0;
40 virtual int getIndex (const char *qName
) = 0;
41 virtual const char *getValue (const char *qName
) = 0;
45 * org/xml/sax/SAXException.java
51 SAXException (const char *message
);
52 virtual ~SAXException ();
59 class SAXParseException
: public SAXException
62 SAXParseException (char *message
, int lineNumber
, int columnNumber
);
84 virtual ~DefaultHandler () { };
86 virtual void startDocument () = 0;
87 virtual void endDocument () = 0;
88 virtual void startElement (char *uri
, char *localName
, char *qName
,
89 Attributes
*attributes
) = 0;
90 virtual void endElement (char *uri
, char *localName
, char *qName
) = 0;
91 virtual void characters (char *ch
, int start
, int length
) = 0;
92 virtual void ignorableWhitespace (char *ch
, int start
, int length
) = 0;
95 warning (SAXParseException
*e
)
101 error (SAXParseException
*e
)
107 fatalError (SAXParseException
*e
)
111 void dump_startElement (const char *qName
, Attributes
*attributes
);
114 #endif /* _DefaultHandler_h */