From: hristov Date: Mon, 17 Mar 2003 17:38:49 +0000 (+0000) Subject: New static member function Deprecated is added X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=b8c3b0ccf81688227f77e2b30d2a2d7a48b1ad55 New static member function Deprecated is added --- diff --git a/STEER/AliRun.h b/STEER/AliRun.h index ae11152554b..df866c0ee87 100644 --- a/STEER/AliRun.h +++ b/STEER/AliRun.h @@ -11,6 +11,7 @@ #include #include #include +#include class TBranch; class TBrowser; @@ -190,6 +191,15 @@ public: AliStack *Stack() const {return fStack;} + static void Deprecated(TObject *obj, const char *method, + const char *replacement) { + if (obj) + ::Warning(Form("%s::%s", obj->ClassName(), method), + "method is depricated\nPlease use: %s", replacement); + else + ::Warning(method, "method is depricated\nPlease use: %s", replacement); + } + protected: virtual void Tree2Tree(Option_t *option, const char *detector=0); TFile* InitFile(TString fileName="");