cmdline.h

Go to the documentation of this file.
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 /// Shows the values of all parameters of the given configurable objects. 00014 // @param file print to file or stdout if NULL 00015 // @param lineprefix is used as prefix for each line if not NULL 00016 void showParams(const ConfigList& configs, FILE* file = 0, const char* lineprefix = 0); 00017 /// Asks the user for changing a parameter of the configurable objects. 00018 // ALL input and output goes to stdin and stdout. 00019 // @param onTerminate() callback if user quits the program 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

Generated on Tue Jan 16 02:14:35 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8