Skip to content
Snippets Groups Projects
Select Git revision
  • 84cef7b60bd72010600b846038f72ea37c870bf1
  • main default
  • frederik
  • Sondre
4 results

stoppested.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    stoppested.h 732 B
    /**
     * Header-fil for stoppested-klassen
     * 
     * @file stoppested.h
     * @author Sondre Sand & Frederik Simonsen
     */
    #ifndef __STOPPESTED_H
    #define __STOPPESTED_H
    
    #include <string>
    #include <vector>
    #include <fstream>
    
    /**
     * Stoppested (med navn, oversikt over alle nabostopp og
     * oversikt over tid til nabostopper)
     */
    class Stoppested {
        private:
            std::string navn;
            std::vector <int> nabostopper;
            std::vector <int> tidtilnabo;
    
        public:
            Stoppested(); 
            Stoppested(std::string nvn, std::ifstream & inn);
            Stoppested(const std::string nvn);
            std::vector <int> hentTTN();
            std::string hentStoppestedNavn();
            void skrivData();
            void lesData(); 
    };
    
    #endif