1 #ifndef _utl_deprecator_h_
2 #define _utl_deprecator_h_
6 #include <utl/AugerException.h>
7 #include <utl/Singleton.h>
70 void Deprecated(
const std::string& theInterface,
71 const std::string& theVersion,
72 const std::string& theNewUsageHint);
88 const std::string& theVersion)
107 typedef std::map<std::string, DeprecationInfo>
DataMap;
std::string GetReport() const
Get the final report on interface usage problems.
std::map< std::string, DeprecationInfo > DataMap
const std::string & GetHint() const
std::size_t fCount
Count of uses of deprecated interface.
std::size_t GetCount() const
const std::string & GetVersion() const
std::string fVersion
Version since when this interface is deprecated.
Class to collect and provide information about deprecated class interfaces.
void Deprecated(const std::string &theInterface, const std::string &theVersion, const std::string &theNewUsageHint)
Log the usage of a deprecated interface and emit a warning.
bool IsEmpty() const
Check if empty, i.e., no deprecated usage registered.
Information about the deprecated interface.
DeprecationInfo(const std::string &theHint, const std::string &theVersion)
std::size_t GetSize() const
Size, i.e., number of different deprecated interfaces uses.
std::string fHint
Hint what to do to avoid deprecated interface.
Curiously Recurring Template Pattern (CRTP) for Meyers singleton.