- 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:
fpaparel 2006-02-17 22:19:25 +00:00
parent 8cb6b81c38
commit 759dfdad25
16 changed files with 670 additions and 45 deletions

View file

@ -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********************************";