mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:02:29 +00:00
Init max_id_
This commit is contained in:
@@ -1351,6 +1351,7 @@ IfcFile::IfcFile(const std::string& fn, bool mmap) {
|
|||||||
#else
|
#else
|
||||||
IfcFile::IfcFile(const std::string& path, filetype ty)
|
IfcFile::IfcFile(const std::string& path, filetype ty)
|
||||||
: schema_(nullptr)
|
: schema_(nullptr)
|
||||||
|
, max_id_(0)
|
||||||
{
|
{
|
||||||
// @todo allow for rocksdb from path
|
// @todo allow for rocksdb from path
|
||||||
if (ty == FT_AUTODETECT) {
|
if (ty == FT_AUTODETECT) {
|
||||||
@@ -1388,6 +1389,7 @@ IfcFile::IfcFile(const std::string& path, filetype ty)
|
|||||||
|
|
||||||
IfcFile::IfcFile(std::istream& stream, int length)
|
IfcFile::IfcFile(std::istream& stream, int length)
|
||||||
: schema_(nullptr)
|
: schema_(nullptr)
|
||||||
|
, max_id_(0)
|
||||||
{
|
{
|
||||||
IfcSpfStream s(stream, length);
|
IfcSpfStream s(stream, length);
|
||||||
storage_.emplace<1>(this);
|
storage_.emplace<1>(this);
|
||||||
@@ -1401,6 +1403,7 @@ IfcFile::IfcFile(std::istream& stream, int length)
|
|||||||
|
|
||||||
IfcFile::IfcFile(void* data, int length)
|
IfcFile::IfcFile(void* data, int length)
|
||||||
: schema_(nullptr)
|
: schema_(nullptr)
|
||||||
|
, max_id_(0)
|
||||||
{
|
{
|
||||||
IfcSpfStream s(data, length);
|
IfcSpfStream s(data, length);
|
||||||
storage_.emplace<1>(this);
|
storage_.emplace<1>(this);
|
||||||
@@ -1414,6 +1417,7 @@ IfcFile::IfcFile(void* data, int length)
|
|||||||
|
|
||||||
IfcFile::IfcFile(IfcParse::IfcSpfStream* s)
|
IfcFile::IfcFile(IfcParse::IfcSpfStream* s)
|
||||||
: schema_(nullptr)
|
: schema_(nullptr)
|
||||||
|
, max_id_(0)
|
||||||
{
|
{
|
||||||
storage_.emplace<1>(this);
|
storage_.emplace<1>(this);
|
||||||
std::get<impl::in_memory_file_storage>(storage_).read_from_stream(s, schema_, max_id_);
|
std::get<impl::in_memory_file_storage>(storage_).read_from_stream(s, schema_, max_id_);
|
||||||
|
|||||||
Reference in New Issue
Block a user