"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18/src/main.h" (30 Jan 2021, 1316 Bytes) of package /linux/privat/ansifilter-2.18.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "main.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.17_vs_2.18.

    1 /*
    2 This file is part of ANSIFilter.
    3 
    4 ANSIFilter is free software: you can redistribute it and/or modify
    5 it under the terms of the GNU General Public License as published by
    6 the Free Software Foundation, either version 3 of the License, or
    7 (at your option) any later version.
    8 
    9 ANSIFilter is distributed in the hope that it will be useful,
   10 but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   12 GNU General Public License for more details.
   13 
   14 You should have received a copy of the GNU General Public License
   15 along with ANSIFilter.  If not, see <http://www.gnu.org/licenses/>.
   16 */
   17 
   18 #ifndef ANSIFILTER_APP
   19 #define ANSIFILTER_APP
   20 
   21 
   22 #include <iostream>
   23 #include <fstream>
   24 #include <string>
   25 #include <vector>
   26 #include <map>
   27 #include <iomanip>
   28 #include <cassert>
   29 
   30 #include "cmdlineoptions.h"
   31 #include "version.h"
   32 
   33 /// Main application class of the command line interface
   34 
   35 class ANSIFilterApp
   36 {
   37 
   38 public:
   39 
   40     ANSIFilterApp() {};
   41     ~ANSIFilterApp() {};
   42 
   43     /** Start application
   44       \param argc Number of command line arguments
   45       \param argv values of command line arguments
   46       \return EXIT_SUCCESS or EXIT_FAILURE
   47     */
   48     int run( const int argc, const char *argv[] );
   49 
   50 private:
   51 
   52     void printVersionInfo();
   53     void printHelp();
   54 
   55 };
   56 
   57 #endif