Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
irrXML.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine" and the "irrXML" project.
3 // For conditions of distribution and use, see copyright notice in irrlicht.h and/or irrXML.h
4 
5 #ifndef __IRR_XML_H_INCLUDED__
6 #define __IRR_XML_H_INCLUDED__
7 
8 #include <stdio.h>
9 #include "IrrCompileConfig.h"
10 
153 namespace irr
154 {
155 namespace io
156 {
159  {
162 
165 
168 
171 
174 
177  };
178 
179 
182  {
185 
188 
191 
194 
197 
200 
203  };
204 
206 
214  {
215  public:
216 
218  virtual ~IFileReadCallBack() {}
219 
221 
224  virtual int read(void* buffer, int sizeToRead) = 0;
225 
227  virtual long getSize() const = 0;
228  };
229 
231 
236  class IXMLBase
237  {
238  };
239 
241 
273  template<class char_type, class super_class>
274  class IIrrXMLReader : public super_class
275  {
276  public:
277 
279  virtual ~IIrrXMLReader() {}
280 
282 
283  virtual bool read() = 0;
284 
286  virtual EXML_NODE getNodeType() const = 0;
287 
289 
292  virtual unsigned int getAttributeCount() const = 0;
293 
295 
297  virtual const char_type* getAttributeName(int idx) const = 0;
298 
300 
302  virtual const char_type* getAttributeValue(int idx) const = 0;
303 
305 
307  virtual const char_type* getAttributeValue(const char_type* name) const = 0;
308 
310 
314  virtual const char_type* getAttributeValueSafe(const char_type* name) const = 0;
315 
317 
320  virtual int getAttributeValueAsInt(const char_type* name) const = 0;
321 
323 
326  virtual int getAttributeValueAsInt(int idx) const = 0;
327 
329 
332  virtual float getAttributeValueAsFloat(const char_type* name) const = 0;
333 
335 
338  virtual float getAttributeValueAsFloat(int idx) const = 0;
339 
341 
343  virtual const char_type* getNodeName() const = 0;
344 
346 
348  virtual const char_type* getNodeData() const = 0;
349 
351  virtual bool isEmptyElement() const = 0;
352 
354 
358  virtual ETEXT_FORMAT getSourceFormat() const = 0;
359 
361 
365  virtual ETEXT_FORMAT getParserFormat() const = 0;
366  };
367 
368 
370 
372  typedef unsigned short char16;
373 
375 
377  typedef unsigned long char32;
378 
380 
386 
388 
394 
396 
402 
403 
405 
414 
416 
426 
428 
441  bool deleteCallback = false);
442 
444 
454 
456 
466 
468 
481  bool deleteCallback = false);
482 
483 
485 
494 
496 
506 
508 
522  bool deleteCallback = false);
523 
524 
546 } // end namespace io
547 } // end namespace irr
548 
549 #endif // __IRR_XML_H_INCLUDED__
550 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Fri Mar 21 2014 04:40:17 by Doxygen (1.8.1.2)