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 typedef vector<Configurable*> ConfigList; 00008 00009 std::vector<string> splitString(const std::string& str, char seperator); 00010 00011 /// Shows the values of all parameters of the given configurable objects. 00012 // @param file print to file or stdout if NULL 00013 // @param lineprefix is used as prefix for each line if not NULL 00014 void showParams(const ConfigList& configs, FILE* file = 0, const char* lineprefix = 0); 00015 /// Asks the user for changing a parameter of the configurable objects. 00016 // ALL input and output goes to stdin and stdout. 00017 // @param onTerminate() callback if user quits the program 00018 void changeParams(ConfigList& configs, void (*onTerminate)()=0); 00019 00020 bool control_c_pressed(); 00021 void cmd_begin_input(); 00022 void cmd_handler_init(); 00023 void cmd_end_input(); 00024 00025 #endif

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