getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] [getfem-commits] branch devel-rppplx-external-except cr


From: Roman Putanowicz
Subject: [Getfem-commits] [getfem-commits] branch devel-rppplx-external-except created (now 8432620)
Date: Wed, 12 Jul 2017 17:41:42 -0400 (EDT)

rpplx pushed a change to branch devel-rppplx-external-except.

        at  8432620   Added enums that allows to distinguish between three 
actions in feedback handler management: setting handler, getting handler and 
replacing handler. The last action allows the user to gain back the control 
over the handler (that otherwise is managed by feedback manager). This feature 
allows for instance to temporarily set feedback handler and then reset it to 
the old one.

This branch includes the following new commits:

       new  ce8b88f   Extended gmm_error class so its constructor accepts an 
integer errorLevel argument. The error level allow for more sophisticated 
management of exception handling, customizing the handler on the base of error 
level. This commit do to introduce any API changes.
       new  241a17f   Specializing GMM_PRETTY_FUNCTION for the case of 
compiling with Visual Studio.
       new  325568c   Introduced macro GMM_THROW_AT_LEVEL that besides error 
message accepts the error level argument and then trows gmm_error with specific 
error level set.
       new  48b1c46   Introduced macro GMM_THROW_DEFAULT that just accepts 
error message. The gmm_error exception is then throw with error level equal 1. 
This macro is introduced because throwing at error level 1 is most common in 
our code, and the macro adds a bit of syntactic sugar.
       new  cbfa70b   Added gmm_feedback_management.h containing just standard 
header file boilerplate.
       new  708f9ba   Introduced macro GMM_ASSERT_LEVEL that should take 
numerical value. Depending on the assertion level the macros GMM_ASSERT1, 
GMM_ASSERT2 and GMM_ASSERT3 are defined to throw exception or are defined to be 
empty. This allows to switch of some assertion on compile time.
       new  ac5f9e5   Added class that will provide feedback interface. User 
will derive from it and provide concrete actions that should be take to forward 
feedback from errors, assertions, warnings. Next commit will introduce feedback 
manager that will manage feedback handlers.
       new  9243fb8   Added default feedback handler class. The behaviour of 
this class is such that id does exactly what GMM library was doing so far with 
the error, warning and assertion messages.
       new  6a216fb   Added feedback management facilities. This management 
installs default feedback, so no change to existing code will be necessary. The 
same time it offers method to setup user defined feedback handler.
       new  87272b9   Added necessary headers.
       new  98b394e   The structures and functions to manage traces level and 
warning levels has been moved from gmm_except.h to gmm_feedback_management.h 
Then the later header has been included in gmm_except.h
       new  2dc16c5   Removed the reference to EXTERNAL_EXCEPT_ and inclusion 
of external_except.h that was used to overwrite behaviour of GMM macros in 
order to provide custom feedback handling.
       new  bd4e2af   Substituting the old way of handling warning message and 
warning level with the new one based on feedback manager.
       new  13bbf84   Substituted traditional way of handling trace message 
(printing to std::cout) with the mechanism base on feedback manager and 
feedback handlers. Besides GMM_TRACE* macros add GMM_SIMPLE_TRACE* macros than 
in trace messages do not include file name and line number.
       new  1398d2a   Introducing the feedback handling menager to 
GMM_STANDARD_CATCH_ERROR.
       new  8821428   Added necessary header.
       new  9625708   Cosmetic changes to comments and white spaces.
       new  8432620   Added enums that allows to distinguish between three 
actions in feedback handler management: setting handler, getting handler and 
replacing handler. The last action allows the user to gain back the control 
over the handler (that otherwise is managed by feedback manager). This feature 
allows for instance to temporarily set feedback handler and then reset it to 
the old one.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]