- 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:
@@ -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
|
||||
Reference in New Issue
Block a user