Restructure and rename

This commit is contained in:
Thomas Krijnen
2026-03-31 15:32:36 +02:00
parent 724cdb446e
commit a07f56db6f
237 changed files with 72532 additions and 72535 deletions
+9 -9
View File
@@ -1,4 +1,4 @@
/********************************************************************************
/********************************************************************************
* *
* This file is part of IfcOpenShell. *
* *
@@ -43,8 +43,8 @@
#include "../ifcgeom/Iterator.h"
#include "../ifcgeom/IfcGeomElement.h"
#include "../ifcparse/IfcFile.h"
#include "../ifcparse/IfcLogger.h"
#include "../ifcparse/file.h"
#include "../ifcparse/logger.h"
#include "../ifcgeom/kernels/opencascade/OpenCascadeKernel.h"
@@ -231,12 +231,12 @@ public:
Get() : Command(GET) {};
};
class GetLog : public Command {
class get_log : public Command {
protected:
void read_content(std::istream& /*s*/) {}
void write_content(std::ostream& /*s*/) {}
public:
GetLog() : Command(GET_LOG) {};
get_log() : Command(GET_LOG) {};
};
class WriteLog : public Command {
@@ -568,7 +568,7 @@ int main () {
bool has_more = false;
IfcGeom::Iterator* iterator = 0;
IfcParse::IfcFile* file = 0;
ifcopenshell::file* file = 0;
std::vector< std::pair<uint32_t, uint32_t> > setting_pairs;
Hello().write(std::cout);
@@ -604,7 +604,7 @@ int main () {
settings.get<ifcopenshell::geometry::settings::MesherLinearDeflection>().value = deflection;
file = new IfcParse::IfcFile(data, (int)len);
file = new ifcopenshell::file(data, (int)len);
iterator = new IfcGeom::Iterator(std::unique_ptr<ifcopenshell::geometry::kernels::AbstractKernel>(new IfcGeom::OpenCascadeKernel(settings)), settings, file);
has_more = iterator->initialize();
@@ -640,8 +640,8 @@ int main () {
continue;
}
case GET_LOG: {
GetLog gl; gl.read(std::cin);
WriteLog(Logger::GetLog()).write(std::cout);
get_log gl; gl.read(std::cin);
WriteLog(logger::get_log()).write(std::cout);
continue;
}
case BYE: {