Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
console.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <readline/readline.h>
#include <readline/history.h>
#include <vector>
#include <sstream>
#include <string>
#include <selforg/stl_adds.h>
#include <selforg/abstractcontroller.h>
#include "globaldata.h"
#include "odeagent.h"
#include "abstractground.h"
Include dependency graph for console.cpp:

Classes

struct  COMMAND
 

Namespaces

 lpzrobots
 forward declarations
 

Typedefs

typedef bool(* commandfunc_t )(GlobalData &globalData, char *, char *)
 
typedef std::list< std::string > ParameterList
 

Functions

bool com_list (GlobalData &globalData, char *, char *)
 
bool com_show (GlobalData &globalData, char *, char *)
 
bool com_store (GlobalData &globalData, char *, char *)
 
bool com_load (GlobalData &globalData, char *, char *)
 
bool com_storecfg (GlobalData &globalData, char *, char *)
 
bool com_loadcfg (GlobalData &globalData, char *, char *)
 
bool com_contrs (GlobalData &globalData, char *, char *)
 
bool com_set (GlobalData &globalData, char *, char *)
 
bool com_help (GlobalData &globalData, char *, char *)
 
bool com_quit (GlobalData &globalData, char *, char *)
 
char * stripwhite (char *string)
 
COMMAND * find_command (char *name)
 
bool execute_line (GlobalData &globalData, char *line)
 
int valid_argument (const char *caller, const char *arg)
 
void printConfigs (const ConfigList &configs)
 
void printConfig (const Configurable *config)
 
char * dupstr (const char *s)
 
char * dupstrpluseq (const char *s)
 
vector< string > splitstring (string s)
 
bool handleConsole (GlobalData &globalData)
 offers a console interface the possibility to change parameter of all configurable objects in globalData storeing and restoreing of controllers ... More...
 
char * command_generator (const char *, int)
 
char * params_generator (const char *, int)
 
char ** console_completion (const char *, int, int)
 
void initializeConsole ()
 should be called at the start More...
 
void closeConsole ()
 should be called at the end (to store history) More...
 
int getListLen (char **strings)
 

Variables

COMMAND commands []
 
ParameterList parameters
 
int _quit_request =false