ConfigEntry.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. function ConfigEntry() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.ConfigEntry()
  4. }
  5. Object.defineProperties(this, {
  6. 'key': { enumerable: true, configurable: true, get: ConfigEntry.prototype.__get_key, set: ConfigEntry.prototype.__set_key},
  7. 'configNamespace': { enumerable: true, configurable: true, get: ConfigEntry.prototype.__get_configNamespace, set: ConfigEntry.prototype.__set_configNamespace},
  8. 'numVal': { enumerable: true, configurable: true, get: ConfigEntry.prototype.__get_numVal, set: ConfigEntry.prototype.__set_numVal},
  9. 'stringVal': { enumerable: true, configurable: true, get: ConfigEntry.prototype.__get_stringVal, set: ConfigEntry.prototype.__set_stringVal},
  10. 'isString': { enumerable: true, configurable: true, get: ConfigEntry.prototype.__get_isString, set: ConfigEntry.prototype.__set_isString}
  11. })
  12. }
  13. ConfigEntry.prototype.__get_key = function() {
  14. return Polycode.ConfigEntry__get_key(this.__ptr)
  15. }
  16. ConfigEntry.prototype.__set_key = function(val) {
  17. Polycode.ConfigEntry__set_key(this.__ptr, val)
  18. }
  19. ConfigEntry.prototype.__get_configNamespace = function() {
  20. return Polycode.ConfigEntry__get_configNamespace(this.__ptr)
  21. }
  22. ConfigEntry.prototype.__set_configNamespace = function(val) {
  23. Polycode.ConfigEntry__set_configNamespace(this.__ptr, val)
  24. }
  25. ConfigEntry.prototype.__get_numVal = function() {
  26. return Polycode.ConfigEntry__get_numVal(this.__ptr)
  27. }
  28. ConfigEntry.prototype.__set_numVal = function(val) {
  29. Polycode.ConfigEntry__set_numVal(this.__ptr, val)
  30. }
  31. ConfigEntry.prototype.__get_stringVal = function() {
  32. return Polycode.ConfigEntry__get_stringVal(this.__ptr)
  33. }
  34. ConfigEntry.prototype.__set_stringVal = function(val) {
  35. Polycode.ConfigEntry__set_stringVal(this.__ptr, val)
  36. }
  37. ConfigEntry.prototype.__get_isString = function() {
  38. return Polycode.ConfigEntry__get_isString(this.__ptr)
  39. }
  40. ConfigEntry.prototype.__set_isString = function(val) {
  41. Polycode.ConfigEntry__set_isString(this.__ptr, val)
  42. }
  43. Duktape.fin(ConfigEntry.prototype, function (x) {
  44. if (x === ConfigEntry.prototype) {
  45. return;
  46. }
  47. Polycode.ConfigEntry__delete(x.__ptr)
  48. })