Reconstitution du dépôt, étape 2
Le commentaire de révision initial figure ci-dessous. Différences par rapport à ce commit : avant les modifications, j'ai renommé guinumo.* en owlps-positioning.*. | r90 | jgraeffly | 2009-05-15 15:08:42 +0200 (ven 15 mai 2009) | 1 line | Chemins modifiés : | A /code/owlps-positioning/owlps-positioning.cc | A /code/owlps-positioning/owlps-positioning.hh git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@91 785a6c6c-259e-4ff1-8b91-dc31627914f0
This commit is contained in:
parent
191109c5b0
commit
418970d68b
|
@ -1,41 +0,0 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include "referencepoint.hh"
|
||||
#include "measurement.hh"
|
||||
#include "accesspoint.hh"
|
||||
#include "clientinfo.hh"
|
||||
#include "server.hh"
|
||||
#include "point.hh"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
ofstream output_file;
|
||||
string read_file;
|
||||
|
||||
cout << "Called guinumo with args: ";
|
||||
for (int i = 1 ; i < argc ; i++)
|
||||
cout << argv[i] << " ";
|
||||
cout << endl;
|
||||
|
||||
if (argc != 5)
|
||||
cout << "Usage: guinumo AP_file Ref_Pt_file Test_file logfile" << endl;
|
||||
else
|
||||
{
|
||||
string apfile = argv[1];
|
||||
string refptfile = argv[2];
|
||||
Server server(apfile, refptfile) ;
|
||||
//server.createClient() ;
|
||||
//server.monitorClient(0, ALGO_CONTINU_FRBHM) ;
|
||||
string testfile = argv[3];
|
||||
string logfile = argv[4];
|
||||
server.radar_exp(logfile, testfile);
|
||||
|
||||
cout << argv[0] << " : fin." << endl ;
|
||||
fflush(stdout) ;
|
||||
}
|
||||
return 0;
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
#ifndef _GUINUMO_HH_
|
||||
#define _GUINUMO_HH_
|
||||
|
||||
|
||||
#define TEST // Décommenter si on teste le serveur avec des fichiers de mesures (commenter pour utiliser des mesures instantanées transmises par le réseau (NON-IMPLÉMENTÉ).
|
||||
#define DEBUG // Décommenter pour avoir de l'affichage en plus.
|
||||
//#define DEBUG_2 // Décommenter pour avoir encore plus d'affichage.
|
||||
//#define DEBUG_T // Décommenter pour afficher chaque entrée et sortie de méthode (trace).
|
||||
|
||||
|
||||
#endif // _GUINUMO_HH_
|
|
@ -0,0 +1,31 @@
|
|||
#include "owlps-positioning.hh"
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc != 1 && argc != 5)
|
||||
{
|
||||
cout << "Usage:\towlps-positioningd\n"
|
||||
<< " \towlps-positioningd AP_file Pt_file Topo_file Waypoint_file" << endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Server server(1234);
|
||||
|
||||
if (argc == 5)
|
||||
{
|
||||
string apfile = argv[1];
|
||||
string ptfile = argv[2];
|
||||
string topofile = argv[3];
|
||||
string wayfile = argv[4];
|
||||
if (server.initFile(apfile, ptfile, topofile, wayfile))
|
||||
{
|
||||
cerr << "Erreur lors de l'initialisation de la topology" << endl;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
server.start();
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef _OWLPS_HH_
|
||||
#define _OWLPS_HH_
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdio>
|
||||
|
||||
#include "server.hh"
|
||||
|
||||
using namespace std;
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue