You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IWriter.h 618B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "defines.h"
  3. namespace XML {
  4. class XML_API IWriterCallback
  5. {
  6. public:
  7. virtual ~IWriterCallback() { }
  8. virtual void write(const char* sString) = 0;
  9. };
  10. class XML_API IWriterCallBack : public IWriterCallback { };
  11. class XML_API IWriter
  12. {
  13. public:
  14. virtual bool openChild(const char* name) = 0;
  15. virtual bool setAttribute(const char* name, const char* value) = 0;
  16. virtual bool setChildData(const char* data) = 0;
  17. virtual bool closeChild() = 0;
  18. virtual void release() = 0;
  19. protected:
  20. virtual ~IWriter() { }
  21. };
  22. extern XML_API IWriter* createWriter(IWriterCallback& callback);
  23. } // namespace XML