Tarefa12/main.cpp
void parse_flights(vector<Flight>& flights, string filename){
  string line = "";
  ifstream file;
  file.open(filename.c_str());
  if(!file.is_open()){
    cerr<<"Problem while opening the file "<<filename<<endl;
    exit(0);
  }
  while (!file.eof())
    {
      getline(file, line);
      parse_flight(flights, line);
    }
}
/**
 * \fn void parse_flights(vector<Flight>& flights, string filename)
 * \brief This function parses the flights from a file.
 * \param flights The vector of flights.
 * \param filename The name of the file containing the flights.
 */
\fn void parse_flights(vector& flights, string filename)
\brief This function parses the flights from a file.
\param flights The vector of flights.
\param filename The name of the file containing the flights.
\ fn void parse_flights ( vector& flights string filename ) \ brief This function parses the flights from a file . \ param flights The vector of flights . \ param filename The name of the file containing the flights .
void parse_flights(vector<Flight>& flights, string filename){
  string line = "";
  ifstream file;
  file.open(filename.c_str());
  if(!file.is_open()){
    cerr<<"Problem while opening the file "<<filename<<endl;
    exit(0);
  }
  while (!file.eof())
    {
      getline(file, line);
      parse_flight(flights, line);
    }
}
void parse_flights ( vector < Flight > & flights , string filename ) { string line = " " ; ifstream file ; file . open ( filename . c_str ( ) ) ; if ( ! file . is_open ( ) ) { cerr << " " << filename << endl ; exit ( 0 ) ; } while ( ! file . eof ( ) ) { getline ( file , line ) ; parse_flight ( flights , line ) ; } }
\fn void parse_flights(vector<Flight>& flights, string filename)
 \brief This function parses the flights from a file.
\ fn void parse_flights ( vector<Flight > & flights string filename ) \ brief This function parses the flights from a file .