11 #include <utl/Deprecator.h>
12 #include <utl/TabularStream.h>
13 #include <utl/ErrorLogger.h>
21 Deprecator::Deprecated(
const std::string& theInterface,
22 const std::string& theVersion,
23 const std::string& theNewUsageHint)
25 const DataMap::iterator infoIter = fData.find(theInterface);
27 if (infoIter == fData.end())
28 fData.insert(make_pair(theInterface,
DeprecationInfo(theNewUsageHint, theVersion)));
30 infoIter->second.IncrementUsage();
37 Deprecator::GetReport()
41 result <<
"Interface" <<
endc
46 for (
const auto& ii : fData)
47 result << ii.first <<
endc
48 << ii.second.GetCount() <<
endc
49 << ii.second.GetVersion() <<
endc
50 << ii.second.GetHint() <<
endr;
class to format data in tabular form
#define WARNING_TERSE(message)
Macro for logging warning messages.
Information about the deprecated interface.