XMLParameters.h 653 B

123456789101112131415161718192021222324252627282930
  1. #ifndef NULLSOFT_XML_XMLPARAMETERS_H
  2. #define NULLSOFT_XML_XMLPARAMETERS_H
  3. #include "ifc_xmlreaderparams.h"
  4. class XMLParameters : public ifc_xmlreaderparams
  5. {
  6. public:
  7. XMLParameters(const wchar_t **_parameters);
  8. const wchar_t *GetItemName(int i);
  9. const wchar_t *GetItemValueIndex(int i);
  10. const wchar_t *GetItemValue(const wchar_t *name);
  11. int GetItemValueInt(const wchar_t *name, int def = 0);
  12. const wchar_t *EnumItemValues(const wchar_t *name, int nb);
  13. int GetNumItems();
  14. private:
  15. const wchar_t **parameters;
  16. int numParameters;
  17. bool numParametersCalculated;
  18. void CountTo(int x);
  19. void Count();
  20. protected:
  21. RECVS_DISPATCH;
  22. };
  23. #endif