57 #ifndef ORO_TASKBROWSER_HPP 58 #define ORO_TASKBROWSER_HPP 68 #if defined(HAS_READLINE) && !defined(HAS_EDITLINE) && defined(_POSIX_VERSION) 112 typedef std::map<std::pair<RTT::TaskContext*,std::string>,
int>
PTrace;
122 #if defined(HAS_READLINE) || defined(HAS_EDITLINE) 123 #if defined(_POSIX_VERSION) && !defined(HAS_EDITLINE) 124 static void rl_sigwinch_handler(
int sig, siginfo_t *si,
void *ctxt);
125 static int rl_received_signal;
126 static void rl_signal_handler(
int sig, siginfo_t *si,
void *ctxt);
129 static int rl_getc(FILE *);
137 static std::vector<std::string> candidates;
139 static std::vector<std::string> completes;
140 static std::vector<std::string>::iterator complete_iter;
142 static std::string component_found;
143 static std::string component;
144 static std::string peerpath;
145 static std::string text;
148 static char* dupstr(
const char *s );
150 static void find_completes();
152 static void find_ops();
153 static void find_peers(std::string::size_type startpos);
155 static char ** orocos_hmi_completion (
const char *text,
int start,
int end );
157 static char *command_generator(
const char *_text,
int state );
163 void listText(std::stringstream& txtss,
int start,
int end,
int ln,
char s);
174 void recordMacro(std::string name);
197 void switchTaskContext(std::string& path);
217 void browserAction(std::string& act );
232 void printHelp(std::string command);
237 void printInfo(
const std::string& peerpath);
242 void printSource(
const std::string m );
252 bool printService(
const std::string name);
262 void printProgram(
const std::string& pn,
int line = -1,
RTT::TaskContext* progpeer = 0 );
267 void printProgram(
int line = -1 );
332 void evalCommand(std::string& comm );
static RTT::TaskContext * taskcontext
std::deque< RTT::TaskContext * > taskHistory
This component allows a text client to browse the peers of a peer RTT::TaskContext and execute comman...
std::stringstream sresult
static RTT::TaskContext * context
bool usehex
last program line number listed to screen
Use colors suitable for a dark background.
static RTT::Service::shared_ptr taskobject
std::map< std::pair< RTT::TaskContext *, std::string >, int > PTrace
boost::shared_ptr< Service > shared_ptr
RTT::internal::DataSource< bool >::shared_ptr accepted
base::DataSourceBase::shared_ptr last_expr
static std::string prompt
boost::intrusive_ptr< DataSource< T > > shared_ptr
static RTT::TaskContext * peer
static std::string coloroff
int storedline
last program listed to screen
static RTT::TaskContext * tb
static std::string underline
boost::intrusive_ptr< DataSourceBase > shared_ptr
static std::string coloron