- added console interpreter
- added string_utils git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@342 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
8cb6b81c38
commit
759dfdad25
16 changed files with 670 additions and 45 deletions
|
@ -22,10 +22,18 @@
|
|||
#define TEXT_SIMULATION_HH 1
|
||||
|
||||
#include "config.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#include "simulation.hh"
|
||||
#include "io_manager.hh"
|
||||
#include "templates/smartp.hh"
|
||||
#include "backend/string_utils.hh"
|
||||
#include "backend/policy_parameters.hh"
|
||||
|
||||
|
||||
#include <glibmm/thread.h>
|
||||
#include <glibmm/ustring.h>
|
||||
#include <utility>
|
||||
|
||||
|
||||
namespace sgpem
|
||||
|
@ -35,11 +43,18 @@ namespace sgpem
|
|||
/**
|
||||
|
||||
*/
|
||||
class SG_DLLEXPORT TextSimulation : public Simulation
|
||||
class SG_DLLEXPORT TextSimulation : public Simulation, public sigc::trackable
|
||||
{
|
||||
public:
|
||||
|
||||
public:
|
||||
~TextSimulation();
|
||||
|
||||
static void parse_command(std::pair< std::pair<TextSimulation*, int>, const Glib::ustring >);
|
||||
void add_io_device(memory::smart_ptr<IOManager>);
|
||||
void update();
|
||||
|
||||
private:
|
||||
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