~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipelib/ipexml.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
// --------------------------------------------------------------------
82
82
 
83
 
/*! \class IpeXmlDataSource
84
 
 * \ingroup base
85
 
 * \brief Interface for getting data for XML parsing.
86
 
 */
87
 
 
88
 
//! Pure virtual destructor.
89
 
IpeXmlDataSource::~IpeXmlDataSource()
90
 
{
91
 
  // nothing
92
 
}
93
 
 
94
 
/*! \class IpeXmlFileSource
95
 
  \ingroup base
96
 
  \brief Data source for parsing XML from a file.
97
 
*/
98
 
 
99
 
IpeXmlFileSource::IpeXmlFileSource(std::FILE *file)
100
 
  : iFile(file)
101
 
{
102
 
  // nothing
103
 
}
104
 
 
105
 
int IpeXmlFileSource::GetChar()
106
 
{
107
 
  return std::fgetc(iFile);
108
 
}
109
 
 
110
 
// --------------------------------------------------------------------
111
 
 
112
83
/*! \class IpeXmlParser
113
84
 * \ingroup base
114
85
 * \brief Base class for XML stream parsing.
125
96
*/
126
97
 
127
98
//! Construct with a data source.
128
 
IpeXmlParser::IpeXmlParser(IpeXmlDataSource &source)
 
99
IpeXmlParser::IpeXmlParser(IpeDataSource &source)
129
100
  : iSource(source)
130
101
{
131
102
  iPos = 0;
242
213
}
243
214
 
244
215
//! Parse PCDATA.
245
 
/*! Checks whether the data is terminated by </tag>, and returns
246
 
  with stream past the >. */
 
216
/*! Checks whether the data is terminated by \c \</tag\>, and returns
 
217
  with stream past the \>. */
247
218
bool IpeXmlParser::ParsePCDATA(IpeString tag, IpeString &pcdata)
248
219
{
249
220
  pcdata.erase();