-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWrapperBaseDriver.h
36 lines (28 loc) · 1.33 KB
/
WrapperBaseDriver.h
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
33
34
35
36
/***************************************************************************
file : WrapperBaseDriver.h
copyright : (C) 2007 Daniele Loiacono
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef WRAPPERBASEDRIVER_H_
#define WRAPPERBASEDRIVER_H_
#include "CarState.h"
#include "CarControl.h"
#include "BaseDriver.h"
#include <cmath>
#include <cstdlib>
class WrapperBaseDriver : public BaseDriver
{
public:
// the drive function wiht string input and output
virtual string drive(string sensors);
// drive function that exploits the CarState and CarControl wrappers as input and output.
virtual CarControl wDrive(CarState cs)=0;
};
#endif /*WRAPPERBASEDRIVER_H_*/