Logo Search packages:      
Sourcecode: havp version File versions  Download package

params.h

/***************************************************************************
                          params.h  -  description
                             -------------------
    begin                : So Feb 20 2005
    copyright            : (C) 2005 by Peter Sebald / Christian Hilgers
    email                : christian@hilgers.ag
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/


#ifndef PARAMS_H
#define PARAMS_H
#include "default.h"
#include <config.h>
#include <iostream>
#include <string>
#include <cstdlib>
#include <map>
#include <fstream>
#include <ctype.h>

using namespace std;

class Params {

private:

static map <string,string> params;

static void ReadConfig(string file);

static void ShowConfig();

static void Usage();

static void SetDefaults();

public:

static bool SetParams(int argcT, char* argv[]);

static void SetConfig(string key, string val);

static bool GetConfigBool(string key);

static string GetConfigString(string key);

static int GetConfigInt(string key);

};
#endif

Generated by  Doxygen 1.6.0   Back to index