Merge pull request #29 from Tridify/win_build_script_improvements

Windows build script improvements
This commit is contained in:
Thomas Krijnen
2016-02-15 16:14:51 +01:00
22 changed files with 347 additions and 122 deletions
+1
View File
@@ -118,6 +118,7 @@ IfcCharacterDecoder::~IfcCharacterDecoder() {
destination = 0;
converter = 0;
compatibility_converter = 0;
ucnv_flushCache();
#endif
}
IfcCharacterDecoder::operator std::string() {
+5
View File
@@ -127,6 +127,11 @@ IfcSpfStream::IfcSpfStream(void* data, int l) {
len = l;
}
IfcSpfStream::~IfcSpfStream()
{
Close();
}
void IfcSpfStream::Close() {
#ifdef BUF_SIZE
if ( paging ) fclose(stream);
+1 -1
View File
@@ -248,7 +248,7 @@ namespace IfcParse {
unsigned int offset;
Entity(unsigned int i, IfcFile* t);
Entity(unsigned int i, IfcFile* t, unsigned int o);
~Entity();
virtual ~Entity();
IfcEntityList::ptr getInverse(IfcSchema::Type::Enum type, int attribute_index);
void Load(std::vector<unsigned int>& ids, bool seek=false) const;
Argument* getArgument (unsigned int i);
+9 -2
View File
@@ -43,7 +43,7 @@ protected:
}
}
~HeaderEntity() {
virtual ~HeaderEntity() {
delete _list;
}
@@ -166,7 +166,14 @@ public:
_file_name = new FileName();
_file_schema = new FileSchema();
}
~IfcSpfHeader()
{
delete _file_schema;
delete _file_name;
delete _file_description;
}
IfcSpfLexer* lexer() { return _lexer; }
void lexer(IfcSpfLexer* l) { _lexer = l; }
+1
View File
@@ -64,6 +64,7 @@ namespace IfcParse {
IfcSpfStream(const std::string& fn);
IfcSpfStream(std::istream& f, int len);
IfcSpfStream(void* data, int len);
~IfcSpfStream();
/// Returns the character at the cursor
char Peek();
/// Returns the character at specified offset