mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Warnings and errors
This commit is contained in:
@@ -32,14 +32,14 @@ void IteratorFactoryImplementation<P>::bind(const std::string& schema_name, type
|
|||||||
template <class P>
|
template <class P>
|
||||||
IfcGeom::IteratorImplementation<P>* IteratorFactoryImplementation<P>::construct(const std::string& schema_name, const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) {
|
IfcGeom::IteratorImplementation<P>* IteratorFactoryImplementation<P>::construct(const std::string& schema_name, const IfcGeom::IteratorSettings& settings, IfcParse::IfcFile* file) {
|
||||||
const std::string schema_name_lower = boost::to_lower_copy(schema_name);
|
const std::string schema_name_lower = boost::to_lower_copy(schema_name);
|
||||||
std::map<std::string, typename get_factory_type<P>::type>::const_iterator it;
|
typename std::map<std::string, typename get_factory_type<P>::type>::const_iterator it;
|
||||||
it = this->find(schema_name_lower);
|
it = this->find(schema_name_lower);
|
||||||
if (it == end()) {
|
if (it == this->end()) {
|
||||||
throw IfcParse::IfcException("No geometry iterator registered for " + schema_name);
|
throw IfcParse::IfcException("No geometry iterator registered for " + schema_name);
|
||||||
}
|
}
|
||||||
return it->second(settings, file);
|
return it->second(settings, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template IteratorFactoryImplementation<float>;
|
template class IteratorFactoryImplementation<float>;
|
||||||
template IteratorFactoryImplementation<double>;
|
template class IteratorFactoryImplementation<double>;
|
||||||
|
|||||||
@@ -1227,10 +1227,10 @@ IfcFile::IfcFile(IfcParse::IfcSpfStream* s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IfcFile::IfcFile(const IfcParse::schema_definition* schema)
|
IfcFile::IfcFile(const IfcParse::schema_definition* schema)
|
||||||
: schema_(schema)
|
: parsing_complete_(false)
|
||||||
, ifcroot_type_(schema_->declaration_by_name("IfcRoot"))
|
|
||||||
, good_(false)
|
, good_(false)
|
||||||
, parsing_complete_(false)
|
, schema_(schema)
|
||||||
|
, ifcroot_type_(schema_->declaration_by_name("IfcRoot"))
|
||||||
, MaxId(0)
|
, MaxId(0)
|
||||||
, tokens(0)
|
, tokens(0)
|
||||||
, stream(0)
|
, stream(0)
|
||||||
|
|||||||
@@ -233,6 +233,8 @@ IfcUtil::ArgumentType IfcUtil::from_parameter_type(const IfcParse::parameter_typ
|
|||||||
return IfcUtil::Argument_DOUBLE;
|
return IfcUtil::Argument_DOUBLE;
|
||||||
case IfcParse::simple_type::string_type:
|
case IfcParse::simple_type::string_type:
|
||||||
return IfcUtil::Argument_STRING;
|
return IfcUtil::Argument_STRING;
|
||||||
|
case IfcParse::simple_type::datatype_COUNT:
|
||||||
|
throw IfcParse::IfcException("Invalid simple type encountered");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user