From 42acc7224ca48ebed4928bec2dfc2c7b46322b92 Mon Sep 17 00:00:00 2001 From: Stinkfist0 Date: Mon, 30 May 2016 17:12:53 +0300 Subject: [PATCH] Add couple missing IfcParse_EXPORTs + add a missing license information --- src/ifcparse/IfcCharacterDecoder.h | 4 ++-- src/ifcparse/IfcEntityDescriptor.h | 4 ++-- src/ifcparse/IfcException.h | 4 +++- src/ifcparse/IfcParse_Export.h | 19 +++++++++++++++++++ src/ifcparse/IfcWrite.h | 2 +- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/ifcparse/IfcCharacterDecoder.h b/src/ifcparse/IfcCharacterDecoder.h index da59c0aaa8..69535663f3 100644 --- a/src/ifcparse/IfcCharacterDecoder.h +++ b/src/ifcparse/IfcCharacterDecoder.h @@ -40,7 +40,7 @@ typedef unsigned int UChar32; namespace IfcParse { - class IfcCharacterDecoder { + class IfcParse_EXPORT IfcCharacterDecoder { private: IfcParse::IfcSpfStream* file; #ifdef HAVE_ICU @@ -75,7 +75,7 @@ namespace IfcParse { namespace IfcWrite { - class IfcCharacterEncoder { + class IfcParse_EXPORT IfcCharacterEncoder { private: std::string str; #ifdef HAVE_ICU diff --git a/src/ifcparse/IfcEntityDescriptor.h b/src/ifcparse/IfcEntityDescriptor.h index 12aa562c70..09a6a2232f 100644 --- a/src/ifcparse/IfcEntityDescriptor.h +++ b/src/ifcparse/IfcEntityDescriptor.h @@ -39,7 +39,7 @@ namespace IfcUtil { - class IfcEnumerationDescriptor { + class IfcParse_EXPORT IfcEnumerationDescriptor { private: IfcSchema::Type::Enum type; std::vector values; @@ -62,7 +62,7 @@ namespace IfcUtil { } }; - class IfcEntityDescriptor { + class IfcParse_EXPORT IfcEntityDescriptor { public: class IfcArgumentDescriptor { diff --git a/src/ifcparse/IfcException.h b/src/ifcparse/IfcException.h index f0a5320409..9033c24187 100644 --- a/src/ifcparse/IfcException.h +++ b/src/ifcparse/IfcException.h @@ -20,11 +20,13 @@ #ifndef IFCEXCEPTION_H #define IFCEXCEPTION_H +#include "IfcParse_Export.h" + #include #include namespace IfcParse { - class IfcException : public std::exception { + class IfcParse_EXPORT IfcException : public std::exception { private: std::string message; public: diff --git a/src/ifcparse/IfcParse_Export.h b/src/ifcparse/IfcParse_Export.h index 4521f2fa67..5c20672c09 100644 --- a/src/ifcparse/IfcParse_Export.h +++ b/src/ifcparse/IfcParse_Export.h @@ -1,3 +1,22 @@ +/******************************************************************************** +* * +* This file is part of IfcOpenShell. * +* * +* IfcOpenShell is free software: you can redistribute it and/or modify * +* it under the terms of the Lesser GNU General Public License as published by * +* the Free Software Foundation, either version 3.0 of the License, or * +* (at your option) any later version. * +* * +* IfcOpenShell is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* Lesser GNU General Public License for more details. * +* * +* You should have received a copy of the Lesser GNU General Public License * +* along with this program. If not, see . * +* * +********************************************************************************/ + #ifndef IfcParse_EXPORT_H #define IfcParse_EXPORT_H diff --git a/src/ifcparse/IfcWrite.h b/src/ifcparse/IfcWrite.h index 1201e89325..9ff47d2940 100644 --- a/src/ifcparse/IfcWrite.h +++ b/src/ifcparse/IfcWrite.h @@ -146,7 +146,7 @@ namespace IfcWrite { // Accumulates all schema instances created from constructors // This way they can be added in a single batch to the IfcFile - class EntityBuffer { + class IfcParse_EXPORT EntityBuffer { private: IfcEntityList::ptr buffer; static EntityBuffer* i;