mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
- Jave Native Interface library for use with the open source http://BIMserver.org
- IfcParse accepts char* as input - IfcOpeningElements now return geometry
This commit is contained in:
@@ -62,6 +62,17 @@ File::File(std::istream& f, int l) {
|
||||
offset = 0;
|
||||
}
|
||||
|
||||
File::File(void* data, int l) {
|
||||
eof = false;
|
||||
size = l;
|
||||
paging = false;
|
||||
buffer = (char*) data;
|
||||
valid = true;
|
||||
ptr = 0;
|
||||
len = l;
|
||||
offset = 0;
|
||||
}
|
||||
|
||||
void File::Close() {
|
||||
stream.close();
|
||||
delete[] buffer;
|
||||
@@ -553,6 +564,9 @@ bool Ifc::Init(const std::string& fn) {
|
||||
bool Ifc::Init(std::istream& f, int len) {
|
||||
return Ifc::Init(new File(f,len));
|
||||
}
|
||||
bool Ifc::Init(void* data, int len) {
|
||||
return Ifc::Init(new File(data,len));
|
||||
}
|
||||
bool Ifc::Init(IfcParse::File* f) {
|
||||
Ifc2x3::InitStringMap();
|
||||
file = f;
|
||||
|
||||
Reference in New Issue
Block a user