add core defines file

This commit is contained in:
Stefan Tröger 2013-10-03 12:25:08 +00:00
parent 8ec3907a03
commit e8dda0b25a

View File

@ -0,0 +1,41 @@
/*
openDCM, dimensional constraint manager
Copyright (C) 2013 Stefan Troeger <stefantroeger@gmx.net>
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 2.1 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.
*/
#ifndef GCM_DEFINES_CORE_H
#define GCM_DEFINES_CORE_H
#include <boost/exception/exception.hpp>
#include <string>
namespace dcm {
//all solving related errors
typedef boost::error_info<struct user_message,std::string> error_message;
typedef boost::error_info<struct first_geom, std::string> error_type_first_geometry;
typedef boost::error_info<struct second_geom, std::string> error_type_second_geometry;
//exception codes are needed by the user
struct creation_error : virtual boost::exception {};
struct solving_error : virtual boost::exception {};
struct constraint_error : virtual boost::exception {};
} //dcm
#endif //GCM_DEFINES_CORE_H