1
0

xmlparams.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // ----------------------------------------------------------------------------
  2. // Generated by InterfaceFactory [Thu May 15 21:07:09 2003]
  3. //
  4. // File : xmlparams.h
  5. // Class : skin_xmlreaderparams
  6. // class layer : Dispatchable Interface
  7. // ----------------------------------------------------------------------------
  8. #ifndef __XMLREADERPARAMS_H
  9. #define __XMLREADERPARAMS_H
  10. #include <bfc/dispatch.h>
  11. //#include <bfc/common.h>
  12. #include "../xml/ifc_xmlreaderparams.h"
  13. // ----------------------------------------------------------------------------
  14. class NOVTABLE skin_xmlreaderparams : public ifc_xmlreaderparams
  15. {
  16. protected:
  17. skin_xmlreaderparams() {}
  18. ~skin_xmlreaderparams() {}
  19. public:
  20. /*
  21. const wchar_t *getItemName(int i);
  22. const wchar_t *getItemValue(int i);
  23. const wchar_t *getItemValue(const wchar_t *name);
  24. const wchar_t *enumItemValues(const wchar_t *name, int nb);
  25. int getItemValueInt(const wchar_t *name, int def = 0);
  26. int getNbItems();
  27. */
  28. void addItem(const wchar_t *parm, const wchar_t *value);
  29. void removeItem(const wchar_t *parm);
  30. void replaceItem(const wchar_t *parm, const wchar_t *value);
  31. int findItem(const wchar_t *parm);
  32. protected:
  33. enum {
  34. /*XMLREADERPARAMS_GETITEMNAME = 100,
  35. XMLREADERPARAMS_GETITEMVALUE = 200,
  36. XMLREADERPARAMS_GETITEMVALUE2 = 201,
  37. XMLREADERPARAMS_ENUMITEMVALUES = 202,
  38. XMLREADERPARAMS_GETITEMVALUEINT = 300,
  39. XMLREADERPARAMS_GETNBITEMS = 400,*/
  40. XMLREADERPARAMS_ADDITEM = 500,
  41. XMLREADERPARAMS_REMOVEITEM = 600,
  42. XMLREADERPARAMS_REPLACEITEM = 700,
  43. XMLREADERPARAMS_FINDITEM = 800,
  44. };
  45. };
  46. // ----------------------------------------------------------------------------
  47. /*
  48. inline const wchar_t *skin_xmlreaderparams::getItemName(int i) {
  49. const wchar_t *__retval = _call(XMLREADERPARAMS_GETITEMNAME, (const wchar_t *)0, i);
  50. return __retval;
  51. }
  52. inline const wchar_t *skin_xmlreaderparams::getItemValue(int i) {
  53. const wchar_t *__retval = _call(XMLREADERPARAMS_GETITEMVALUE, (const wchar_t *)0, i);
  54. return __retval;
  55. }
  56. inline const wchar_t *skin_xmlreaderparams::getItemValue(const wchar_t *name) {
  57. const wchar_t *__retval = _call(XMLREADERPARAMS_GETITEMVALUE2, (const wchar_t *)0, name);
  58. return __retval;
  59. }
  60. inline const wchar_t *skin_xmlreaderparams::enumItemValues(const wchar_t *name, int nb) {
  61. const wchar_t *__retval = _call(XMLREADERPARAMS_ENUMITEMVALUES, (const wchar_t *)0, name, nb);
  62. return __retval;
  63. }
  64. inline int skin_xmlreaderparams::getItemValueInt(const wchar_t *name, int def) {
  65. int __retval = _call(XMLREADERPARAMS_GETITEMVALUEINT, (int)0, name, def);
  66. return __retval;
  67. }
  68. inline int skin_xmlreaderparams::getNbItems() {
  69. int __retval = _call(XMLREADERPARAMS_GETNBITEMS, (int)0);
  70. return __retval;
  71. }
  72. */
  73. inline void skin_xmlreaderparams::addItem(const wchar_t *parm, const wchar_t *value) {
  74. _voidcall(XMLREADERPARAMS_ADDITEM, parm, value);
  75. }
  76. inline void skin_xmlreaderparams::removeItem(const wchar_t *parm) {
  77. _voidcall(XMLREADERPARAMS_REMOVEITEM, parm);
  78. }
  79. inline void skin_xmlreaderparams::replaceItem(const wchar_t *parm, const wchar_t *value) {
  80. _voidcall(XMLREADERPARAMS_REPLACEITEM, parm, value);
  81. }
  82. inline int skin_xmlreaderparams::findItem(const wchar_t *parm) {
  83. int __retval = _call(XMLREADERPARAMS_FINDITEM, (int)0, parm);
  84. return __retval;
  85. }
  86. // ----------------------------------------------------------------------------
  87. #endif // __XMLREADERPARAMS_H