#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) |
Definition in file deprecated.h.
#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, | |||
Y | ) |
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().