diff --git a/modules/base/src/CMakeLists.txt b/modules/base/src/CMakeLists.txt index c2d698cf99a8d7651066f0f058e5968892fa7c43..30660f6d5cdb4511271e8fb771b3ad4d11bcbb6f 100644 --- a/modules/base/src/CMakeLists.txt +++ b/modules/base/src/CMakeLists.txt @@ -1,7 +1,5 @@ set(OST_BASE_SOURCES generic_property.cc -invalid_handle.cc -integrity_error.cc log.cc profile.cc units.cc diff --git a/modules/base/src/integrity_error.cc b/modules/base/src/integrity_error.cc deleted file mode 100644 index ced74b0c9eabd222cbc3283fdd4fe96bcf28ad5c..0000000000000000000000000000000000000000 --- a/modules/base/src/integrity_error.cc +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// This file is part of the OpenStructure project <www.openstructure.org> -// -// Copyright (C) 2008-2010 by the OpenStructure authors -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License as published by the Free -// Software Foundation; either version 3.0 of the License, or (at your option) -// any later version. -// This library 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 GNU Lesser General Public License for more -// details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this library; if not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -//------------------------------------------------------------------------------ -#include "integrity_error.hh" -#include <ost/message.hh> - -namespace ost { -IntegrityError::IntegrityError(const String& msg): - Error(msg) -{ - -} - -} diff --git a/modules/base/src/integrity_error.hh b/modules/base/src/integrity_error.hh index 45c4e263c12c65f4fe4adf019acd0bcb518894cc..95f371dc8b473b68bf04ed95cc23399ddc86c59e 100644 --- a/modules/base/src/integrity_error.hh +++ b/modules/base/src/integrity_error.hh @@ -25,9 +25,11 @@ namespace ost { -class DLLEXPORT_OST_BASE IntegrityError : public Error { +class DLLEXPORT IntegrityError : public Error { public: - IntegrityError(const String& msg); + IntegrityError::IntegrityError(const String& msg): + Error(msg) + { } }; } diff --git a/modules/base/src/invalid_handle.cc b/modules/base/src/invalid_handle.cc deleted file mode 100644 index 86a631ad5f1c687e9d81249c03984fe0b17cf085..0000000000000000000000000000000000000000 --- a/modules/base/src/invalid_handle.cc +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// This file is part of the OpenStructure project <www.openstructure.org> -// -// Copyright (C) 2008-2010 by the OpenStructure authors -// -// This library is free software; you can redistribute it and/or modify it under -// the terms of the GNU Lesser General Public License as published by the Free -// Software Foundation; either version 3.0 of the License, or (at your option) -// any later version. -// This library 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 GNU Lesser General Public License for more -// details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this library; if not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -//------------------------------------------------------------------------------ -#include <ost/message.hh> - -#include "invalid_handle.hh" - -namespace ost { - -InvalidHandle::InvalidHandle() - : Error("Can not access invalid handle or view") { - -} - -} diff --git a/modules/base/src/invalid_handle.hh b/modules/base/src/invalid_handle.hh index 03814ef7b726c3e9137e97cd08bf886039d33bb2..33292cfe0a89878785e1efb5adbda8d12ce284e8 100644 --- a/modules/base/src/invalid_handle.hh +++ b/modules/base/src/invalid_handle.hh @@ -27,9 +27,11 @@ namespace ost { /// \brief Signals access of member functions of invalid handles -class DLLEXPORT_OST_BASE InvalidHandle : public Error { +class DLLEXPORT InvalidHandle : public Error { public: - InvalidHandle(); + InvalidHandle::InvalidHandle() + : Error("Can not access invalid handle or view") + {} }; template <typename H> diff --git a/modules/base/src/test_utils/compare_files.cc b/modules/base/src/test_utils/compare_files.cc index ff5578299aa6983d56aa402628d665e8ffa8ab82..a1c1b9307b6e74ea6b03f59a60ac7d88992d5053 100644 --- a/modules/base/src/test_utils/compare_files.cc +++ b/modules/base/src/test_utils/compare_files.cc @@ -21,6 +21,7 @@ #include <fstream> #include "compare_files.hh" +namespace ost { bool compare_files(const String& test, const String& gold_standard) { std::ifstream test_stream(test.c_str()); @@ -50,3 +51,5 @@ bool compare_files(const String& test, const String& gold_standard) } return true; } + +} diff --git a/modules/base/src/test_utils/compare_files.hh b/modules/base/src/test_utils/compare_files.hh index 7f441ae69b308ea3917e4de563b5d91b36d5c682..8944e080592d6f3ca79efd0016e3362b187c2660 100644 --- a/modules/base/src/test_utils/compare_files.hh +++ b/modules/base/src/test_utils/compare_files.hh @@ -21,7 +21,13 @@ #define OST_COMPARE_FILES_HH #include <ost/base.hh> +#include <ost/module_config.hh> + +namespace ost { + +bool DLLEXPORT_OST_BASE compare_files(const String& test, + const String& gold_standard); +} -bool compare_files(const String& test, const String& gold_standard); #endif