• Main Page
  • Namespaces
  • Data Structures
  • Files
  • File List

/www/proggenOrg/dedupe/export/trunk/userinterface/cli/ui.h

Go to the documentation of this file.
00001 
00009 #ifndef ORG_PROGGEN_DEDUPE_CLI_UI_H
00010 #define ORG_PROGGEN_DEDUPE_CLI_UI_H
00011 
00012 #include <kernel.h>
00013 #include <boost/filesystem/fstream.hpp>
00014 #include <boost/program_options.hpp>
00015 #include <boost/regex.hpp>
00016 
00017 namespace bpo = boost::program_options;
00018 
00019 namespace Dedupe
00020 {
00021   namespace CLI
00022   {
00026     class UI
00027     {
00028       public:
00029 
00033       UI( std::ostream &MessageOut );
00034 
00039       bool WriteDuplicatesToFile( Dedupe::Core::Duplicates Dups, Dedupe::FilePath PathToFile );
00040 
00045       Dedupe::Core::FilesToProcess ReadDecidedDuplicatesFromFile( Dedupe::FilePath PathToFile );
00046 
00050       void SetTitle( std::string FileHeader );
00051 
00052       private:
00053       void EraseComments( std::string &FileLine );
00054       void EraseWhitespaces( std::string &FileLine );
00055       bool SplitPathFromDecision( std::string &LineString, std::string &Decision, std::string &Link );
00056       std::ostream &Message;
00057       std::string Header;
00058     };
00059 
00060   }
00061 }
00062 #endif

Generated on Mon Mar 11 2013 12:04:52 for Dedupe by  doxygen 1.7.1