- 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
20
src/main.cc
20
src/main.cc
|
@ -34,9 +34,11 @@
|
|||
#include "backend/process.hh"
|
||||
#include "backend/policy.hh"
|
||||
#include "backend/policy_parameters.hh"
|
||||
#include "backend/python_policy.hh"
|
||||
#include "backend/python_policy_manager.hh"
|
||||
#include "standard_io.hh"
|
||||
#include "text_simulation.hh"
|
||||
|
||||
#include <glibmm/timer.h>
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <iostream>
|
||||
|
@ -57,6 +59,10 @@ main(int argc, char* argv[])
|
|||
setlocale(LC_ALL, "");
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
|
||||
// Set up Glib thread support
|
||||
Glib::thread_init();
|
||||
|
||||
/*
|
||||
// Parses options and prepares vector with
|
||||
// filenames of documents to be opened
|
||||
|
@ -68,12 +74,14 @@ main(int argc, char* argv[])
|
|||
filenames.insert(filenames.begin(), a_ptr, a_ptr+a_count);
|
||||
}
|
||||
*/
|
||||
//start_gui(argc, argv);
|
||||
|
||||
|
||||
StandardIO io;
|
||||
io.write_buffer("\nciao!!");
|
||||
ustring ss = io.read_command();
|
||||
cout << "\n\n\n" << ss;
|
||||
TextSimulation text_sim;
|
||||
//textual IO
|
||||
smart_ptr<IOManager> io(new StandardIO());
|
||||
text_sim.add_io_device(io);
|
||||
//grafical IO
|
||||
start_gui(argc, argv);
|
||||
|
||||
//SMOKE-TEST for backend classes
|
||||
/* cout << "\n\n********************************";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue