35 #ifndef EMANEAGENTSGPSDLOCATIONAGENT_HEADER_ 36 #define EMANEAGENTSGPSDLOCATIONAGENT_HEADER_ 47 namespace GPSDLocation
66 void start()
override;
70 void destroy()
throw()
override;
79 const void * arg)
override;
85 std::string sClientPTTYName_;
86 std::string sPseudoTerminalFile_;
87 std::string sPseudoTerminalNameFile_;
88 bool bHaveInitialPosition_;
89 bool bHaveInitialVelocity_;
90 double dLatitudeDegrees_;
91 double dLongitudeDegrees_;
92 double dAltitudeMeters_;
93 double dAzimuthDegrees_;
94 double dMagnitudeMetersPerSecond_;
105 void sendSpoofedNMEA(
double dLatitude,
double dLongitude,
double dAltitude);
114 void sendSpoofedGPVTG(
double dAzimuth,
double dMagnitude);
116 void doCheckSumNMEA(
char *buf,
size_t len);
122 #endif // EMANEAGENTSGPSDLOCATIONAGENT_HEADER_ std::string Serialization
The Registrar interface provides access to all of the emulator registrars.
void initialize(Registrar ®istrar) override
void processTimedEvent(TimerEventId eventId, const TimePoint &expireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg) override
Agent(NEMId nemId, PlatformServiceProvider *pPlatformService)
void processEvent(const EventId &, const Serialization &) override
Base class for all event agents.
void configure(const ConfigurationUpdate &update) override
std::vector< ConfigurationNameAnyValues > ConfigurationUpdate
Agent translating location events to NMEA gpsd messages.
Clock::time_point TimePoint