- Written some code for command processing. Still not tested it. Feedback is very much appreciated!
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@746 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
0e79b163f3
commit
2ede92d6d1
4 changed files with 444 additions and 23 deletions
|
@ -27,7 +27,8 @@
|
|||
#include "simulation.hh"
|
||||
#include "io_manager.hh"
|
||||
#include "templates/smartp.hh"
|
||||
#include "backend/policy_parameters.hh"
|
||||
//#include "backend/policy_parameters.hh"
|
||||
#include "backend/string_utils.hh"
|
||||
|
||||
#include "smartp.hh"
|
||||
|
||||
|
@ -120,6 +121,25 @@ namespace sgpem
|
|||
void update();
|
||||
|
||||
private:
|
||||
void arguments_ignored(const Tokens& arguments);
|
||||
void on_run(const Tokens& arguments);
|
||||
void on_pause(const Tokens& arguments);
|
||||
void on_stop(const Tokens& arguments);
|
||||
void on_configure_cpu_policy(const Tokens& arguments);
|
||||
void on_help(const Tokens& arguments);
|
||||
void on_quit(const Tokens& arguments);
|
||||
void on_get(const Tokens& arguments);
|
||||
void on_set(const Tokens& arguments);
|
||||
void on_show(const Tokens& arguments);
|
||||
void on_add(const Tokens& arguments);
|
||||
void on_remove(const Tokens& arguments);
|
||||
|
||||
// FIXME This is a temporary replacement for the
|
||||
// to-be written I/O layer
|
||||
static void p_stdout(const Glib::ustring& str);
|
||||
static void p_stderr(const Glib::ustring& str);
|
||||
static Glib::ustring readline();
|
||||
|
||||
std::vector<memory::smart_ptr<IOManager> > _devices;
|
||||
static void _io_loop(std::pair<TextSimulation*, int>);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue