123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.SFloorParser = void 0;
- const SParser_1 = require("./SParser");
- class SFloorParser extends SParser_1.SParser {
- constructor() {
- super(...arguments);
- this.wallList = [];
- this.columnList = [];
- this.doorList = [];
- this.casementList = [];
- this.virtualWallList = [];
- this.spaceList = [];
- }
- parseData(data) {
- if (data.Walls) {
- data.Walls.forEach((t) => {
- this.addWall(t);
- });
- }
- if (data.Columns) {
- data.Columns.forEach((t) => {
- this.addColumn(t);
- });
- }
- if (data.Windows) {
- data.Windows.forEach((t) => {
- this.addCasement(t);
- });
- }
- if (data.VirtualWalls) {
- data.VirtualWalls.forEach((t) => {
- this.addVirtualWall(t);
- });
- }
- if (data.Doors) {
- data.Doors.forEach((t) => {
- this.addDoor(t);
- });
- }
- if (data.Spaces) {
- data.Spaces.forEach((t) => {
- this.addSpace(t);
- });
- }
- }
- addWall(t) {
- let item = this.factory.createWall(t);
- this.wallList.push(item);
- }
- addColumn(t) {
- let item = this.factory.createColumn(t);
- this.columnList.push(item);
- }
- addCasement(t) {
- let item = this.factory.createWindow(t);
- this.casementList.push(item);
- }
- addVirtualWall(t) {
- let item = this.factory.createVirtualWall(t);
- this.virtualWallList.push(item);
- }
- addDoor(t) {
- let item = this.factory.createDoor(t);
- this.doorList.push(item);
- }
- addSpace(t) {
- let item = this.factory.createSpace(t);
- this.spaceList.push(item);
- }
- }
- exports.SFloorParser = SFloorParser;
|