started adding floorplan LINT
new helper methods
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "Floorplan.h"
|
||||
#include "FloorplanLINT.h"
|
||||
|
||||
#include "../../misc/Debug.h"
|
||||
#include "../../Assertions.h"
|
||||
@@ -40,6 +41,7 @@ namespace Floorplan {
|
||||
);
|
||||
}
|
||||
IndoorMap* map = parse(doc);
|
||||
Floorplan::LINT::check(map);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -57,6 +59,7 @@ namespace Floorplan {
|
||||
);
|
||||
}
|
||||
IndoorMap* map = parse(doc);
|
||||
Floorplan::LINT::check(map);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -431,9 +434,6 @@ namespace Floorplan {
|
||||
poly.points.push_back(p2);
|
||||
}
|
||||
}
|
||||
if (poly.points.size() < 4 || poly.points.size() > 1024) {
|
||||
throw Exception("detected invalid outline-polygon during XML parsing");
|
||||
}
|
||||
return poly;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user