deprecated.h File Reference

some macro definitions used to detect use of obsolete functions and print some warning More...

#include <iostream>

Include dependency graph for deprecated.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RETVAL_NOT_IMPLEMENTED   5432
#define PRINT_WARNING_DEPRECATED_FUNCTION
#define WARNING_MSG_DEPRECATED_VIRTUAL_METHOD   "WARNING: a deprecated virtual method is being used instead of a new one "
#define RUN_DEPRECATED_OR_NEW_VIRTUAL_METHOD(X, Y)


Detailed Description

some macro definitions used to detect use of obsolete functions and print some warning

Author:
Baldo Nicola
Date:
Thu Nov 22 18:11:42 2007

Definition in file deprecated.h.


Define Documentation

#define PRINT_WARNING_DEPRECATED_FUNCTION

Value:

{                               \
    static bool print_warning_deprecated_function = true;               \
      if (print_warning_deprecated_function)    {                       \
        cerr << "WARNING: method " << __PRETTY_FUNCTION__                       \
             << "() is deprecated " << endl;                            \
        print_warning_deprecated_function = false;                      \
      }                                                                 \
  }

Definition at line 52 of file deprecated.h.

Referenced by ClMessage::ClMessage(), PlugIn::sendCl(), Module::sendDown(), PlugIn::sendSynchronousCl(), Module::sendSynchronousDown(), Module::sendSynchronousUp(), and Module::sendUp().

#define RUN_DEPRECATED_OR_NEW_VIRTUAL_METHOD ( X,
 ) 

Value:

{       \
    static bool print_warning_deprecated_virtual_method = true;         \
    int retval=(Y);                                                     \
    if ( retval ==  RETVAL_NOT_IMPLEMENTED ) {                          \
        retval = (X);                                                   \
        if (( retval !=  RETVAL_NOT_IMPLEMENTED )                     \
             && print_warning_deprecated_virtual_method)        {       \
           cerr << WARNING_MSG_DEPRECATED_VIRTUAL_METHOD(X,Y) << endl;   \
           print_warning_deprecated_virtual_method = false;             \
        }                                                               \
      }                                                                 \
  }

Definition at line 72 of file deprecated.h.

Referenced by ClSAP::handle(), SAP::sendDown(), ClSAP::sendModule(), SAP::sendSynchronousDown(), ClSAP::sendSynchronousModule(), SAP::sendSynchronousUp(), and SAP::sendUp().


Generated on Wed Nov 26 15:47:32 2008 for NS-MIRACLE library by  doxygen 1.5.2