presage  0.8.7
Public Member Functions | Static Public Attributes | Private Member Functions
DefaultProfile Class Reference

#include <defaultProfile.h>

Inheritance diagram for DefaultProfile:
Inheritance graph
[legend]
Collaboration diagram for DefaultProfile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DefaultProfile (const std::string &filename)
 ~DefaultProfile ()

Static Public Attributes

static const char * DEFAULT_PROFILE_FILENAME = "presage.xml"
static const std::string DEFAULT_LOGGER_LEVEL = "DEBUG"
static const int DEFAULT_PREDICT_TIME = 1000
static const int DEFAULT_MAX_PARTIAL_PREDICTION_SIZE = 100
static const std::string DEFAULT_COMBINATION_POLICY = "Meritocracy"
static const std::string DEFAULT_PREDICTIVE_PREDICTORS
static const int DEFAULT_SLIDING_WINDOW_SIZE = 80
static const size_t DEFAULT_SUGGESTIONS = 6
static const bool DEFAULT_REPEAT_SUGGESTION = false
static const size_t DEFAULT_GREEDY_SUGGESTION_THRESHOLD = 0
static const std::string DEFAULT_PREDICTORS = "RecencyPredictor"
static const char * DEFAULT_AUTOPERSIST = "false"

Private Member Functions

void build_xml_document (const std::string &)

Detailed Description

Default profile.

Definition at line 33 of file defaultProfile.h.


Constructor & Destructor Documentation

DefaultProfile::DefaultProfile ( const std::string &  filename)

Profile constructor.

Parameters:
filenamewhere profile is saved to

Definition at line 43 of file defaultProfile.cpp.

References build_xml_document().

Here is the call graph for this function:

Profile destructor.

Destructor deallocates the Configuration object passed in costructor.

Definition at line 49 of file defaultProfile.cpp.


Member Function Documentation

void DefaultProfile::build_xml_document ( const std::string &  filename) [private]

Definition at line 54 of file defaultProfile.cpp.

References Profile::xmlProfileDoc.

Referenced by DefaultProfile().

Here is the caller graph for this function:


Member Data Documentation

const char * DefaultProfile::DEFAULT_AUTOPERSIST = "false" [static]

Definition at line 59 of file defaultProfile.h.

const std::string DefaultProfile::DEFAULT_COMBINATION_POLICY = "Meritocracy" [static]

Definition at line 52 of file defaultProfile.h.

Definition at line 57 of file defaultProfile.h.

const std::string DefaultProfile::DEFAULT_LOGGER_LEVEL = "DEBUG" [static]

Definition at line 49 of file defaultProfile.h.

Definition at line 51 of file defaultProfile.h.

const int DefaultProfile::DEFAULT_PREDICT_TIME = 1000 [static]

Definition at line 50 of file defaultProfile.h.

Definition at line 53 of file defaultProfile.h.

const std::string DefaultProfile::DEFAULT_PREDICTORS = "RecencyPredictor" [static]

Definition at line 58 of file defaultProfile.h.

const char * DefaultProfile::DEFAULT_PROFILE_FILENAME = "presage.xml" [static]

Definition at line 48 of file defaultProfile.h.

Referenced by ProfileManager::init_profiles().

const bool DefaultProfile::DEFAULT_REPEAT_SUGGESTION = false [static]

Definition at line 56 of file defaultProfile.h.

Definition at line 54 of file defaultProfile.h.

const size_t DefaultProfile::DEFAULT_SUGGESTIONS = 6 [static]

Definition at line 55 of file defaultProfile.h.


The documentation for this class was generated from the following files: