FlightPlan Class. More...
#include <FlightPlan.h>
Public Member Functions | |
FlightPlan () | |
Constructor. | |
~FlightPlan () | |
Destructor. | |
void | open (std::string file_name) |
Opens Waypoints data from file_name. | |
void | save (std::string file_name) |
Saves Waypoints data to file_name. | |
void | display () |
Displays list of Waypoints. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, FlightPlan &flightPlan) |
Prints the resulting output to the screen. |
FlightPlan Class.
This class is derived from vector of GeoCoord class type so it can get the ability of standard vector (like push_back, pop_back, etc) and the ability of GeoCoord class type.
This class also enables opening from file, saving into file, and produces output stream to the command window.
Definition at line 34 of file FlightPlan.h.
uvsim::FlightPlan::FlightPlan | ( | ) |
Constructor.
Definition at line 30 of file FlightPlan.cc.
uvsim::FlightPlan::~FlightPlan | ( | ) |
Destructor.
Definition at line 34 of file FlightPlan.cc.
void uvsim::FlightPlan::display | ( | ) |
Displays list of Waypoints.
Definition at line 104 of file FlightPlan.cc.
void uvsim::FlightPlan::open | ( | std::string | file_name | ) |
Opens Waypoints data from file_name.
file_name | : the name of the file that contains the waypoints. |
Definition at line 38 of file FlightPlan.cc.
void uvsim::FlightPlan::save | ( | std::string | file_name | ) |
Saves Waypoints data to file_name.
file_name | : the name of the file that is the destination of writing waypoints. |
Definition at line 87 of file FlightPlan.cc.
std::ostream& operator<< | ( | std::ostream & | out, | |
FlightPlan & | flightPlan | |||
) | [friend] |
Prints the resulting output to the screen.
out | : Reference to the output stream. | |
flightPlan | : Reference to object flightPlan from FlightPlan class. |