LocalesInfo.h 782 B

123456789101112131415161718192021222324252627282930
  1. #ifndef NULLSOFT_WASABI_LOCALESINFO_H
  2. #define NULLSOFT_WASABI_LOCALESINFO_H
  3. #include "../xml/ifc_xmlreadercallbackI.h"
  4. #include <bfc/string/StringW.h>
  5. class obj_xml;
  6. class LocaleItem
  7. {
  8. public:
  9. LocaleItem(const wchar_t *name) : name(name), language(name) { };
  10. const wchar_t *getName() { return name; }
  11. const wchar_t *getLanguage() { return language; }
  12. const wchar_t *getAuthor() { return author; }
  13. protected:
  14. StringW name;
  15. StringW language;
  16. StringW author;
  17. };
  18. class LocalesInfosXmlReader : public LocaleItem, public ifc_xmlreadercallbackI // XmlReaderCallbackI
  19. {
  20. public:
  21. LocalesInfosXmlReader(const wchar_t *skinname);
  22. void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  23. private:
  24. obj_xml *parser;
  25. };
  26. #endif