This is the sample program that can see the decode result of barcode data on Watson IoT.

Dependencies:   AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice

Embed: (wiki syntax)

« Back to documentation index

Location Class Reference

Location Class Reference

Location class. More...

#include <Location.h>

Public Member Functions

 Location ()
 Default constructor.
 Location (const Location &location)
 Copy constructor.
virtual ~Location ()
 Destructor.
virtual void updateLocation ()=0
 Update the current location (pure virtual)
virtual char * getLatitude ()
 Get latest Latitude.
virtual char * getLongitude ()
 Get latest Longitude.
char * getMSLAltitude ()
 Get latest MSL Altitude (m)
char * getSpeed ()
 Get latest Speed (km/h) (pure virtual)

Detailed Description

Location class.

Definition at line 51 of file Location.h.


Constructor & Destructor Documentation

Location (  )

Default constructor.

Definition at line 29 of file Location.cpp.

Location ( const Location location )

Copy constructor.

Parameters:
loggerinput Location instance to deep copy

Definition at line 37 of file Location.cpp.

~Location (  ) [virtual]

Destructor.

Definition at line 45 of file Location.cpp.


Member Function Documentation

char * getLatitude (  ) [virtual]

Get latest Latitude.

Definition at line 49 of file Location.cpp.

char * getLongitude (  ) [virtual]

Get latest Longitude.

Definition at line 54 of file Location.cpp.

char * getMSLAltitude (  )

Get latest MSL Altitude (m)

Definition at line 59 of file Location.cpp.

char * getSpeed (  )

Get latest Speed (km/h) (pure virtual)

Definition at line 64 of file Location.cpp.

virtual void updateLocation (  ) [pure virtual]

Update the current location (pure virtual)