presage  0.8.7
defaultProfile.h
Go to the documentation of this file.
00001 
00002 /******************************************************
00003  *  Presage, an extensible predictive text entry system
00004  *  ---------------------------------------------------
00005  *
00006  *  Copyright (C) 2008  Matteo Vescovi <matteo.vescovi@yahoo.co.uk>
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License along
00019     with this program; if not, write to the Free Software Foundation, Inc.,
00020     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00021                                                                              *
00022                                                                 **********(*)*/
00023 
00024 
00025 #ifndef PRESAGE_DEFAULTPROFILE
00026 #define PRESAGE_DEFAULTPROFILE
00027 
00028 #include "profile.h"
00029 
00033 class DefaultProfile : public Profile {
00034 public:
00039     DefaultProfile(const std::string& filename);
00040 
00046     ~DefaultProfile();
00047 
00048     static const char*        DEFAULT_PROFILE_FILENAME;
00049     static const std::string  DEFAULT_LOGGER_LEVEL;
00050     static const int          DEFAULT_PREDICT_TIME;
00051     static const int          DEFAULT_MAX_PARTIAL_PREDICTION_SIZE;
00052     static const std::string  DEFAULT_COMBINATION_POLICY;
00053     static const std::string  DEFAULT_PREDICTIVE_PREDICTORS;
00054     static const int          DEFAULT_SLIDING_WINDOW_SIZE;
00055     static const size_t       DEFAULT_SUGGESTIONS;
00056     static const bool         DEFAULT_REPEAT_SUGGESTION;
00057     static const size_t       DEFAULT_GREEDY_SUGGESTION_THRESHOLD;
00058     static const std::string  DEFAULT_PREDICTORS;
00059     static const char*        DEFAULT_AUTOPERSIST;
00060 
00061 private:
00062 
00063     void build_xml_document (const std::string&);
00064 
00065 };
00066 
00067 #endif // PRESAGE_DEFAULTPROFILE