30 #ifndef LSST_PEX_LOGGING_THRESHOLD_MEMORY_H
31 #define LSST_PEX_LOGGING_THRESHOLD_MEMORY_H
36 #include <boost/shared_ptr.hpp>
37 #include <boost/tokenizer.hpp>
46 typedef boost::tokenizer<boost::char_separator<char> >
tokenizer;
87 const tokenizer::iterator& end)
const
98 const tokenizer::iterator& end,
106 const tokenizer::iterator& end);
114 const std::string& prefix)
const;
131 const tokenizer::iterator& end);
146 const tokenizer::iterator& end,
147 bool orNearest=
false)
const;
156 const tokenizer::iterator& end);
174 Memory(
const std::string& delims=
".");
189 if (name.length() == 0) {
223 boost::char_separator<char>
_sep;
228 #endif // end LSST_PEX_LOGGING_THRESHOLD_MEMORY_H
Memory(const std::string &delims=".")
void setThresholdFor(tokenizer::iterator toptoken, const tokenizer::iterator &end, int threshold)
void setRootThreshold(int threshold)
std::map< std::string, Family * > ChildMap
table::Key< std::string > name
int getThresholdFor(tokenizer::iterator toptoken, const tokenizer::iterator &end) const
void printDescThresholds(std::ostream &out, const std::string &prefix) const
Family(int defaultThreshold=INHERIT)
void setThreshold(int threshold)
definitions of reusable enumerations
void printThresholds(std::ostream &out)
boost::tokenizer< boost::char_separator< char > > tokenizer
Family * makeDescendants(tokenizer::iterator toptoken, const tokenizer::iterator &end)
Family * ensureDescendant(tokenizer::iterator toptoken, const tokenizer::iterator &end)
void setThresholdFor(const std::string &name, int threshold)
void resetThresholdFor(tokenizer::iterator toptoken, const tokenizer::iterator &end)
A hierarchical tree structure for holding mappings of names to threshold values.
int getThresholdFor(const std::string &name)
boost::char_separator< char > _sep
const Family * findDescendant(tokenizer::iterator toptoken, const tokenizer::iterator &end, bool orNearest=false) const