~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Source/cmXMLParser.h

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2006-06-18 16:34:11 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060618163411-pi234s3v6jwlcmof
Tags: 2.4.2-1
* New upstream release (Closes: #338324)
* Put cmake .vim files into /usr/share/vim/addons/plugin/
  where they can be used. (Closes: #366663)
* Install cmake-mode.el so it can be used. (Closes: #366664)
* Ensure cmake FindKDE locates KDE libraries on Debian
  based distributions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   CMake - Cross-Platform Makefile Generator
4
4
  Module:    $RCSfile: cmXMLParser.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2005/01/18 18:41:23 $
7
 
  Version:   $Revision: 1.1 $
 
6
  Date:      $Date: 2006/05/14 19:22:45 $
 
7
  Version:   $Revision: 1.1.6.1 $
8
8
 
9
9
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
10
10
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
44
44
  virtual int ParseFile(const char* file);
45
45
  
46
46
  /**
47
 
   * When parsing fragments of XML or streaming XML, use the following three
48
 
   * methods.  InitializeParser method initialize parser but does not perform
49
 
   * any actual parsing.  ParseChunk parses framgent of XML. This has to match
50
 
   * to what was already parsed. CleanupParser finishes parsing. If there were
51
 
   * errors, CleanupParser will report them.
 
47
   * When parsing fragments of XML or streaming XML, use the following
 
48
   * three methods.  InitializeParser method initialize parser but does
 
49
   * not perform any actual parsing.  ParseChunk parses framgent of
 
50
   * XML. This has to match to what was already parsed. CleanupParser
 
51
   * finishes parsing. If there were errors, CleanupParser will report
 
52
   * them.
52
53
   */
53
54
  virtual int InitializeParser();
54
55
  virtual int ParseChunk(const char* inputString, unsigned int length);
55
56
  virtual int CleanupParser();
56
57
 
57
58
protected:
58
 
  //! This variable is true if there was a parse error while parsing in chunks.
 
59
  //! This variable is true if there was a parse error while parsing in
 
60
  //chunks.
59
61
  int ParseError;
60
62
 
61
63
  //1 Expat parser structure.  Exists only during call to Parse().
71
73
  virtual int ParsingComplete();
72
74
 
73
75
  /**
74
 
   * Called when a new element is opened in the XML source.  Should be replaced
75
 
   * by subclasses to handle each element.
76
 
   *   name = Name of new element.
77
 
   *   atts = Null-terminated array of attribute name/value pairs.  Even
78
 
   *          indices are attribute names, and odd indices are values.
 
76
   * Called when a new element is opened in the XML source.  Should be
 
77
   * replaced by subclasses to handle each element.  name = Name of new
 
78
   * element.  atts = Null-terminated array of attribute name/value pairs.
 
79
   * Even indices are attribute names, and odd indices are values.
79
80
   */
80
81
  virtual void StartElement(const char* name, const char** atts);
81
82
  
82
 
  //! Called at the end of an element in the XML source opened when StartElement
83
 
  // was called.
 
83
  //! Called at the end of an element in the XML source opened when
 
84
  //StartElement was called.
84
85
  virtual void EndElement(const char* name);
85
86
  
86
87
  //! Called when there is character data to handle.