00001
#ifndef _CMDLINE_H
00002
#define _CMDLINE_H
00003
00004
#include <selforg/configurable.h>
00005
#include <vector>
00006
00007
using namespace std;
00008
00009 typedef vector<Configurable*>
ConfigList;
00010
00011 std::vector<string>
splitString(
const std::string& str,
char seperator);
00012
00013
00014
00015
00016
void showParams(
const ConfigList& configs, FILE* file = 0,
const char* lineprefix = 0);
00017
00018
00019
00020
void changeParams(ConfigList& configs,
void (*onTerminate)()=0);
00021
00022
bool control_c_pressed();
00023
void cmd_begin_input();
00024
void cmd_handler_init();
00025
void cmd_end_input();
00026
00027
#endif