LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
#include <Memory.h>
Public Member Functions | |
Memory (const std::string &delims=".") | |
int | getThresholdFor (const std::string &name) |
void | setThresholdFor (const std::string &name, int threshold) |
int | getRootThreshold () |
void | setRootThreshold (int threshold) |
void | forgetAllNames () |
void | printThresholds (std::ostream &out) |
Private Attributes | |
Family | _tree |
boost::char_separator< char > | _sep |
a container for keeping track of the threshold data for a family of Logs. The actually mappings of log names to remembered threshold values is stored internally (privately) as a Family instance. One Memory instance shared by all the Log instances in a Log hierarchy, created first by the root log and passed (by shared pointer) to child logs as they are created.
lsst::pex::logging::threshold::Memory::Memory | ( | const std::string & | delims = "." | ) |
Definition at line 171 of file Memory.cc.
|
inline |
reset the memory
Definition at line 213 of file Memory.h.
|
inline |
|
inline |
return the threshold value associated with a given name
Definition at line 179 of file Memory.h.
void lsst::pex::logging::threshold::Memory::printThresholds | ( | std::ostream & | out | ) |
print the thresholds stored in this Memory that are not set to INHERIT.
Definition at line 178 of file Memory.cc.
|
inline |
return the default threshold value associated with the root of the hierarchy.
Definition at line 208 of file Memory.h.
|
inline |
set the threshold value associated with a given name
Definition at line 188 of file Memory.h.
|
private |
|
private |