41 const char* predictorName,
42 const char* shortDesc,
44 : name (predictorName),
45 shortDescription(shortDesc ),
46 longDescription (longDesc ),
49 PREDICTORS (
"Presage.Predictors."),
50 logger (predictorName, std::cerr)
96 const std::string& prefix,
97 const char** filter)
const 104 while (filter[i] && !result) {
105 std::string candidate = prefix + filter[i];
108 if (token.find (candidate) == 0) {
const std::string getName() const
_SetLevel setlevel(std::string __l)
Manipulator for level.
virtual void set_logger(const std::string &level)
const std::string longDescription
Predictor(Configuration *configuration, ContextTracker *contextTracker, const char *predictorName="Predictor", const char *shortDescription="", const char *longDescription="")
const std::string shortDescription
Tracks user interaction and context.
const std::string getShortDescription() const
virtual bool token_satisfies_filter(const std::string &token, const std::string &prefix, const char **filter) const
const Logger< _charT, _Traits > & endl(const Logger< _charT, _Traits > &lgr)
const std::string getLongDescription() const