23 lines
399 B
C++
23 lines
399 B
C++
#ifndef GLOBALVAR_H
|
|
#define GLOBALVAR_H
|
|
|
|
#include "singletone.h"
|
|
#include "serialcontroller.h"
|
|
|
|
#define PI 3.1415926535898
|
|
|
|
class globalVarManager
|
|
{
|
|
public:
|
|
globalVarManager();
|
|
SerialController *GetSerailController();
|
|
void SetSerialController(SerialController *);
|
|
|
|
|
|
private:
|
|
SerialController *mSerial;
|
|
};
|
|
|
|
typedef Singletone<globalVarManager> GlobalVarManager;
|
|
#endif // GLOBALVAR_H
|