12345678910111213141516171819202122232425262728293031323334 |
- var t = require;
- var e = module;
- var i = exports;
- Object.defineProperty(i, "__esModule", {value: !0}),
- (i.CsvDataBase = void 0),
- (i.CsvDataBase = class {
- constructor() {
- this.id = null;
- }
- $parseData(e, i, s) {
- var o = e.length;
- for (let t = 0; t < o; t++)
- switch (i[t]) {
- case "int":
- this[s[t]] = parseInt(e[t]);
- break;
- case "float":
- this[s[t]] = parseFloat(e[t]);
- break;
- case "string":
- this[s[t]] = e[t];
- break;
- case "ints":
- this[s[t]] = e[t].split("|").map(t => parseInt(t));
- break;
- case "floats":
- this[s[t]] = e[t].split("|").map(t => parseFloat(t));
- break;
- case "strings":
- this[s[t]] = e[t].split("|");
- }
- return e[0];
- }
- });
|