Pass around non-static logger instances and programmatic access to messages in-memory

This commit is contained in:
Thomas Krijnen
2026-06-10 18:30:54 +02:00
parent a751fb956d
commit a7738eeb64
132 changed files with 1029 additions and 884 deletions
+8 -1
View File
@@ -21,15 +21,22 @@
#define SERIALIZER_H
#include "../ifcparse/IfcFile.h"
#include "../ifcparse/IfcLogger.h"
class Serializer {
protected:
Logger& logger_;
public:
explicit Serializer(Logger& logger = Logger::Root()) : logger_(logger) {}
virtual ~Serializer() {}
Logger& logger() const { return logger_; }
virtual bool ready() = 0;
virtual void writeHeader() = 0;
virtual void finalize() = 0;
virtual void setFile(IfcParse::IfcFile*) = 0;
};
#endif
#endif