[Top][All Lists]

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

[Getfem-commits] [getfem-commits] master updated (89e54b3 -> d1b9770)

From: Yves Renard
Subject: [Getfem-commits] [getfem-commits] master updated (89e54b3 -> d1b9770)
Date: Fri, 14 Jul 2017 01:37:41 -0400 (EDT)

renard pushed a change to branch master.

      from  89e54b3   Fixed white space issues: converted tabs to spaces, 
removed trailing spaces.
       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 
       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.
       new  d1b9770   fix a warning

Summary of changes:
 src/gmm/gmm_def.h                 |  16 +-
 src/gmm/gmm_except.h              | 334 +++++++++++++++++++++++---------------
 src/gmm/gmm_feedback_management.h | 174 ++++++++++++++++++++
 3 files changed, 388 insertions(+), 136 deletions(-)
 create mode 100644 src/gmm/gmm_feedback_management.h

reply via email to

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