]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/SchedFlight.hxx
Modified Files:
[flightgear.git] / src / Traffic / SchedFlight.hxx
index 2396ae84b4f703e91bd8d9dba18702accc3021b3..4f85ed9931d098d53dc1d3bcd78c1be204791e3a 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  *
  *
  **************************************************************************/
@@ -67,14 +67,14 @@ public:
   FGScheduledFlight();
   FGScheduledFlight(const FGScheduledFlight &other);
   //  FGScheduledFlight(const string);
-  FGScheduledFlight::FGScheduledFlight(string cs,
-                    string fr,
-                    string depPrt,
-                    string arrPrt,
+  FGScheduledFlight(const string& cs,
+                    const string& fr,
+                    const string& depPrt,
+                    const string& arrPrt,
                     int cruiseAlt,
-                    string deptime,
-                    string arrtime,
-                    string rep
+                    const string& deptime,
+                    const string& arrtime,
+                    const string& rep
                     );
   ~FGScheduledFlight();
 
@@ -95,13 +95,16 @@ public:
   { 
     return (departureTime < other.departureTime); 
   };
+  string& getFlightRules() { return fltRules; };
 
-  time_t processTimeString(string time);
-  string getCallSign() {return callsign; };
+  time_t processTimeString(const string& time);
+  const string& getCallSign() {return callsign; };
 };
 
-typedef vector<FGScheduledFlight>           FGScheduledFlightVec;
-typedef vector<FGScheduledFlight>::iterator FGScheduledFlightVecIterator;
+typedef vector<FGScheduledFlight*>           FGScheduledFlightVec;
+typedef vector<FGScheduledFlight*>::iterator FGScheduledFlightVecIterator;
+
+bool compareScheduledFlights(FGScheduledFlight *a, FGScheduledFlight *b);
 
 
 #endif