- 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:
Thomas Krijnen
2011-10-27 16:13:29 +00:00
parent cac8d9b684
commit ac155dc810
8 changed files with 185 additions and 35 deletions
+14
View File
@@ -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;