Skip to content
Snippets Groups Projects
Commit b3843955 authored by marco's avatar marco
Browse files

fixes for unit tests to link/work properly with -fvisibility=hidden

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2249 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent e727766f
No related branches found
No related tags found
No related merge requests found
set(OST_BASE_SOURCES
generic_property.cc
invalid_handle.cc
integrity_error.cc
log.cc
profile.cc
units.cc
......
//------------------------------------------------------------------------------
// 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)
{
}
}
......@@ -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)
{ }
};
}
......
//------------------------------------------------------------------------------
// 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") {
}
}
......@@ -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>
......
......@@ -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;
}
}
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment