- added Kml export

- added HttpServer


git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@124 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-01-11 08:09:11 +00:00
parent 2d6b448237
commit 14fc402ff3
13 changed files with 997 additions and 9 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef KML_HPP
#define KML_HPP
#include "../JuceLibraryCode/JuceHeader.h"
#include "IHttp.hpp"
#include "IKml.hpp"
class Kml : public IKml, public IHttpListener
{
public:
Kml(const char *pDocRoot);
~Kml(void);
private:
CriticalSection m_lock;
ScopedPointer<XmlElement> kml;
XmlElement *m_pPlanePlaceMark;
XmlElement *m_pPathPlaceMark;
char m_path[1024];
const char *m_docRoot;
void create();
void destroy();
const char* getPath();
void update(FlightData const &flightData);
void export(const char *pPath);
void updatePlane(FlightData const &flightData);
void updatePath(FlightData const &flightData);
void onUpdate(const char *pPath);
};
#endif // !KML_HPP