blob: 485e3d3ae6ffd2d47569383bb45b4ed3415374a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* simulationTest.cc
*
* Created on: 28 mai 2011
* Author: christian
*/
#include <iostream>
#include "Parser.h"
#include "Accelerator.h"
#include "exceptions.h"
using namespace std;
using namespace vhc;
int main(){
try{
Parser pars("./simulation.xml");
Accelerator* a = pars.extract();
cout<< *a <<endl;
a->clear();
delete a;
}
catch(Exception const& ex){
cout<<ex.getExceptionType()<<endl
<<ex.getMessage()<<endl;
}
return 0;
}
|