- Added some source in the backend lib
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@293 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
7ecc9ab822
commit
8f02d11b0a
12 changed files with 442 additions and 21 deletions
26
src/main.cc
26
src/main.cc
|
@ -25,17 +25,24 @@
|
|||
#include "parseopts.hh"
|
||||
#include "startgui.hh"
|
||||
|
||||
#include "backend/slice.hh"
|
||||
#include "backend/schedulable.hh"
|
||||
#include "backend/schedulableStatus.hh"
|
||||
#include "backend/simulationStatus.hh"
|
||||
#include "backend/process.hh"
|
||||
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
using namespace sgpem;
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
using namespace std;
|
||||
|
||||
|
||||
// Set up gettext support
|
||||
setlocale(LC_ALL, "");
|
||||
|
@ -52,11 +59,22 @@ main(int argc, char* argv[])
|
|||
filenames.insert(filenames.begin(), a_ptr, a_ptr+a_count);
|
||||
}
|
||||
|
||||
start_gui(argc, argv);
|
||||
start_gui(argc, argv);
|
||||
|
||||
//SMOKE-TEST for backend classes
|
||||
|
||||
sgpem::Process pp(0,10,5);
|
||||
cout << "\n\n********************************";
|
||||
Process p("P1", 0,10,5);
|
||||
SchedulableStatus ss(p);
|
||||
SchedulableStatus ss2(ss);
|
||||
SimulationStatus sim;
|
||||
sim.setRunning(ss);
|
||||
|
||||
Slice sl(0,5, sim);
|
||||
|
||||
cout << "\n\n";
|
||||
|
||||
cout << "AAA " <<sl.getSimulationStatus().getRunning()->getSchedulable()->getName();
|
||||
|
||||
cout << "\n\n";
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue