| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- function ObjectEntry() {
- if(arguments[0] != "__skip_ptr__") {
- this.__ptr = Polycode.ObjectEntry()
- }
- Object.defineProperties(this, {
- 'type': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_type, set: ObjectEntry.prototype.__set_type},
- 'name': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_name, set: ObjectEntry.prototype.__set_name},
- 'NumberVal': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_NumberVal, set: ObjectEntry.prototype.__set_NumberVal},
- 'intVal': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_intVal, set: ObjectEntry.prototype.__set_intVal},
- 'stringVal': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_stringVal, set: ObjectEntry.prototype.__set_stringVal},
- 'boolVal': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_boolVal, set: ObjectEntry.prototype.__set_boolVal},
- 'length': { enumerable: true, configurable: true, get: ObjectEntry.prototype.__get_length, set: ObjectEntry.prototype.__set_length}
- })
- }
- ObjectEntry.prototype.__get_type = function() {
- return Polycode.ObjectEntry__get_type(this.__ptr)
- }
- ObjectEntry.prototype.__set_type = function(val) {
- Polycode.ObjectEntry__set_type(this.__ptr, val)
- }
- ObjectEntry.prototype.__get_name = function() {
- return Polycode.ObjectEntry__get_name(this.__ptr)
- }
- ObjectEntry.prototype.__set_name = function(val) {
- Polycode.ObjectEntry__set_name(this.__ptr, val)
- }
- ObjectEntry.prototype.__get_NumberVal = function() {
- return Polycode.ObjectEntry__get_NumberVal(this.__ptr)
- }
- ObjectEntry.prototype.__set_NumberVal = function(val) {
- Polycode.ObjectEntry__set_NumberVal(this.__ptr, val)
- }
- ObjectEntry.prototype.__get_intVal = function() {
- return Polycode.ObjectEntry__get_intVal(this.__ptr)
- }
- ObjectEntry.prototype.__set_intVal = function(val) {
- Polycode.ObjectEntry__set_intVal(this.__ptr, val)
- }
- ObjectEntry.prototype.__get_stringVal = function() {
- return Polycode.ObjectEntry__get_stringVal(this.__ptr)
- }
- ObjectEntry.prototype.__set_stringVal = function(val) {
- Polycode.ObjectEntry__set_stringVal(this.__ptr, val)
- }
- ObjectEntry.prototype.__get_boolVal = function() {
- return Polycode.ObjectEntry__get_boolVal(this.__ptr)
- }
- ObjectEntry.prototype.__set_boolVal = function(val) {
- Polycode.ObjectEntry__set_boolVal(this.__ptr, val)
- }
- ObjectEntry.prototype.__get_length = function() {
- return Polycode.ObjectEntry__get_length(this.__ptr)
- }
- ObjectEntry.prototype.__set_length = function(val) {
- Polycode.ObjectEntry__set_length(this.__ptr, val)
- }
- Duktape.fin(ObjectEntry.prototype, function (x) {
- if (x === ObjectEntry.prototype) {
- return;
- }
- Polycode.ObjectEntry__delete(x.__ptr)
- })
- ObjectEntry.prototype.readNumber = function(key,out) {
- return Polycode.ObjectEntry_readNumber(this.__ptr, key, out.__ptr)
- }
- ObjectEntry.prototype.readString = function(key,out) {
- return Polycode.ObjectEntry_readString(this.__ptr, key, out.__ptr)
- }
- ObjectEntry.prototype.readBool = function(key,out) {
- return Polycode.ObjectEntry_readBool(this.__ptr, key, out.__ptr)
- }
- ObjectEntry.prototype.addChild = function(name) {
- var retVal = new ObjectEntry()
- retVal.__ptr = Polycode.ObjectEntry_addChild(this.__ptr, name)
- return retVal
- }
- ObjectEntry.prototype.getTypedName = function() {
- return Polycode.ObjectEntry_getTypedName(this.__ptr)
- }
- ObjectEntry.prototype.setTypedName = function(str) {
- Polycode.ObjectEntry_setTypedName(this.__ptr, str)
- }
- ObjectEntry.prototype.Clear = function() {
- Polycode.ObjectEntry_Clear(this.__ptr)
- }
|