Rewrite IfcFile::AddEntity() not to rely on exceptions, as suggested by ch0kee.

This commit is contained in:
Thomas Krijnen
2014-11-02 18:36:51 +00:00
parent 6e44683b5d
commit 872dd4e831
6 changed files with 133 additions and 26 deletions
+2 -1
View File
@@ -132,6 +132,7 @@ namespace IfcWrite {
std::string toString(bool upper=false) const;
unsigned int Size() const;
argument_type argumentType() const;
IfcUtil::ArgumentType IfcWriteArgument::type() const;
};
/// An entity to help with passing of SELECT arguments that
@@ -154,7 +155,7 @@ namespace IfcWrite {
bool is(IfcSchema::Type::Enum t) const;
std::string toString(bool upper = false) const;
unsigned int id();
bool isWritable();
IfcWritableEntity* isWritable();
};
/// A helper class for passing of SELECT arguments that