- added HttpServer git-svn-id: http://moon:8086/svn/software/trunk/projects/FsTrack@124 b431acfa-c32f-4a4a-93f1-934dc6c82436
33 lines
711 B
C++
33 lines
711 B
C++
#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
|