Fix a bug in the order of applying the scaling of a IfcCartesianTransformationOperator3DnonUniform

Fix a bug in the formatting of IFC simple types
Provide a way of iterating over all entities in the IFC file
Added IFC test file by Ryan Schultz
Added another IFC test file from AutoCAD Architecture 2010
This commit is contained in:
Thomas Krijnen
2012-03-16 15:21:52 +00:00
parent 3bb008c89f
commit cdbafac676
7 changed files with 16321 additions and 4 deletions
+7 -1
View File
@@ -444,7 +444,7 @@ ArgumentPtr EntityArgument::operator [] (unsigned int i) const { throw IfcExcept
std::string EntityArgument::toString(bool upper) const {
ArgumentPtr arg = entity->wrappedValue();
IfcParse::TokenArgument* token_arg = dynamic_cast<IfcParse::TokenArgument*>(arg);
std::string token_string = ( token_arg ) ? TokenFunc::asString(token_arg->token) : "";
std::string token_string = ( token_arg ) ? TokenFunc::toString(token_arg->token) : "";
std::string dt = Ifc2x3::Type::ToString(entity->type());
if ( upper ) {
for (std::string::iterator p = dt.begin(); p != dt.end(); ++p ) *p = toupper(*p);
@@ -807,6 +807,12 @@ void Ifc::LogMessage(const std::string& type, const std::string& message, const
std::string Ifc::GetLog() {
return log_stream.str();
}
MapEntityById::const_iterator Ifc::First() {
return byid.begin();
}
MapEntityById::const_iterator Ifc::Last() {
return byid.end();
}
File* Ifc::file = 0;
std::ostream* Ifc::log1 = 0;