Select Git revision
services.go
-
Abdulsamad Sheikh authored
Edited FetchCountriesByLanguage to expect an array of CountryInfo objects instead of a single LanguageCountriesResponse object
Abdulsamad Sheikh authoredEdited FetchCountriesByLanguage to expect an array of CountryInfo objects instead of a single LanguageCountriesResponse object
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
rute.cpp 15.06 KiB
/**
* Kode-fil for rute-klassen
*
* @file rute.cpp
* @author Sondre Sand & Frederik Simonsen
*/
#include <algorithm> //all_of
#include <iostream>
#include <iomanip>
#include <list>
#include <fstream>
#include "const.h"
#include "rute.h"
#include "stoppested.h"
#include "stoppesteder.h"
#include "LesData3.h"
using namespace std;
extern Stoppesteder gStoppestederBase;
//********STOPP FUNKSJONER*******************
/**
* Construct a new Stopp:: Stopp object
*
* @param stoppNr
* @param antMin
*/
Stopp::Stopp(const int stoppNr, const int antMin) {
nr = stoppNr; minutter = antMin;
}
/**
* Henter en stopps unike nr
*
* @return Et stoppesteds unike nr
*/
int Stopp::hentNr() {
return nr;
}
/**
* @brief henter minutter fra forrige stopp
*
* @return int
*/
int Stopp::hentMin() {
return minutter;
}
/**
* skrivTilFil(...)
*
* @param ut
*/
void Stopp::skrivTilFil(ofstream & ut) {
ut << nr << ' ' << minutter << '\n';
}
//********RUTE FUNKSJONER*******************
/**
* Rute()
*/
Rute::Rute() {
// Gjør ingenting, men må være her så man kan opprette buss/bane
}