x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
validation.hpp - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\test\utils\runtime\validation.hpp
Girar
Efecto
Propiedad
Historial
// (C) Copyright Gennadiy Rozental 2005-2007. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision: 43798 $ // // Description : defines exceptions and validation tools // *************************************************************************** #ifndef BOOST_RT_VALIDATION_HPP_062604GER #define BOOST_RT_VALIDATION_HPP_062604GER // Boost.Runtime.Parameter #include
// Boost.Test #include
// Boost #include
// STL #ifdef BOOST_RT_PARAM_EXCEPTION_INHERIT_STD #include
#endif namespace boost { namespace BOOST_RT_PARAM_NAMESPACE { // ************************************************************************** // // ************** runtime::logic_error ************** // // ************************************************************************** // class logic_error #ifdef BOOST_RT_PARAM_EXCEPTION_INHERIT_STD : public std::exception #endif { typedef shared_ptr
dstring_ptr; public: // Constructor // !! could we eliminate shared_ptr explicit logic_error( cstring msg ) : m_msg( new dstring( msg.begin(), msg.size() ) ) {} ~logic_error() throw() {} dstring const& msg() const { return *m_msg; } virtual char_type const* what() const throw() { return m_msg->c_str(); } private: dstring_ptr m_msg; }; // ************************************************************************** // // ************** runtime::report_logic_error ************** // // ************************************************************************** // inline void report_logic_error( format_stream& msg ) { throw BOOST_RT_PARAM_NAMESPACE::logic_error( msg.str() ); } //____________________________________________________________________________// #define BOOST_RT_PARAM_REPORT_LOGIC_ERROR( msg ) \ boost::BOOST_RT_PARAM_NAMESPACE::report_logic_error( format_stream().ref() << msg ) #define BOOST_RT_PARAM_VALIDATE_LOGIC( b, msg ) \ if( b ) {} else BOOST_RT_PARAM_REPORT_LOGIC_ERROR( msg ) //____________________________________________________________________________// } // namespace BOOST_RT_PARAM_NAMESPACE } // namespace boost #endif // BOOST_RT_VALIDATION_HPP_062604GER
validation.hpp
Dirección de la página
Dirección del archivo
Anterior
8/8 Siguiente
Descargar
( 2 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.