1
0

SWFParameters.h 769 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include "../xml/ifc_xmlreadercallback.h"
  3. #include "XMLString.h"
  4. #include <vector>
  5. #include <crtdefs.h>
  6. class obj_xml;
  7. struct SWFArgument
  8. {
  9. wchar_t *type;
  10. wchar_t *value;
  11. };
  12. class SWFParameters : public ifc_xmlreadercallback
  13. {
  14. public:
  15. typedef std::vector<SWFArgument*> ArgumentList;
  16. SWFParameters(obj_xml *_parser);
  17. ~SWFParameters();
  18. wchar_t *functionName;
  19. bool GetUnsigned(size_t index, unsigned int *value);
  20. bool GetDouble(size_t index, double *value);
  21. private:
  22. void StartTag(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  23. void EndTag(const wchar_t *xmlpath, const wchar_t *xmltag);
  24. XMLString currentParameter;
  25. ArgumentList arguments;
  26. _locale_t C_locale;
  27. obj_xml *parser;
  28. protected:
  29. RECVS_DISPATCH;
  30. };