Files
IfcOpenShell/src/serializers/RocksDbSerializer.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
941 B
C++
Raw Normal View History

2025-08-26 12:54:04 +02:00
#ifndef ROCKSDBSERIALIZER_H
#define ROCKSDBSERIALIZER_H
#ifdef IFOPSH_WITH_ROCKSDB
#include "../serializers/serializers_api.h"
#include "../ifcgeom/Serializer.h"
#include <string>
#include <vector>
2026-08-08 07:42:45 +02:00
class SERIALIZERS_API RocksDbSerializer : public serializer {
private:
std::string input_filename_;
std::string rocksdb_filename_;
std::vector<std::string> skip_supertypes_;
void write_streaming_();
public:
RocksDbSerializer(const std::string& input_filename, const std::string& rocksdb_filename, const std::vector<std::string>& skip_supertypes = {}, ::logger* logger = nullptr);
virtual ~RocksDbSerializer() {}
bool ready() override { return true; }
bool is_streaming() const override { return true; }
void writeHeader() override {}
void finalize() override;
void setFile(ifcopenshell::file&) override { throw ifcopenshell::exception("Streaming serializer uses input filename supplied on construction"); }
};
2025-08-26 12:54:04 +02:00
#endif
#endif