mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
Implement streaming scan through file and use in rocksdb serializer and python
This commit is contained in:
@@ -10,11 +10,14 @@ class SERIALIZERS_API RocksDbSerializer : public Serializer {
|
||||
private:
|
||||
rocksdb::DB* db_;
|
||||
std::string rocksdb_filename_;
|
||||
IfcParse::IfcFile* file_;
|
||||
std::variant<IfcParse::IfcFile*, std::string> file_;
|
||||
IfcParse::IfcFile* output_file_;
|
||||
|
||||
void write_streaming_();
|
||||
void write_non_streaming_();
|
||||
public:
|
||||
RocksDbSerializer(IfcParse::IfcFile* file, const std::string& rocksdb_filename);
|
||||
RocksDbSerializer(const std::string& input_filename, const std::string& rocksdb_filename, bool stream);
|
||||
|
||||
virtual ~RocksDbSerializer() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user