1: /* webcpp - driver.h
     2:  * Copyright (C)2001-2003 Jeffrey Bakker
     3: 
     4:  * This program 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 2 of the License, or
     7:  * (at your option) any later version.
     8: 
     9:  * This program 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 this program; if not, write to the Free Software
    16:  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    17:    ___________________________________ .. .
    18:  */
    19: 
    20: #ifndef DRIVER_H 
    21: #define DRIVER_H 
    22: 
    23: #if     defined(WIN32) 
    24: #define LIST_DIRECTORY "dir /s /b " 
    25: #define DIRECTORY_SLASH "\\" 
    26: #define DELETE "del webcppbatch.txt" 
    27: #define CYCLE_SPEED CLK_TCK 
    28: #else 
    29: #define LIST_DIRECTORY "ls " 
    30: #define DIRECTORY_SLASH "/" 
    31: #define DELETE "rm -f webcppbatch.txt" 
    32: #define CYCLE_SPEED CLOCKS_PER_SEC 
    33: #endif  //defined(WIN32/UNIX) 
    34: 
    35: #define HELP_LANGUAGES 'L' 
    36: #define HELP_DEFAULT   'D' 
    37: 
    38: #include "engine.h" 
    39: 
    40: class Driver {
    41:  public:
    42: 	Driver();
    43: 	~Driver();
    44: 	static void help(char mode);
    45: 	bool switch_parser(string arg);
    46: 	char getExt(string filename);
    47: 	string checkExt(string filename);
    48: 	static void makeIndex(string prefix);
    49: 	bool prep_files(string ifile, string ofile, char over);
    50: 	string getTitle();
    51: 	void drive();
    52: 	void clean();
    53: 
    54:  protected:
    55: 	Engine *lang;
    56: 	string iFile;
    57: 	string oFile;
    58: };
    59: 
    60: #endif //DRIVER_H 
    61: 



w e b c p p
web c plus plus