summaryrefslogtreecommitdiff
path: root/College_Impl.cpp
blob: 4e0b17d1c6cc5d5be89da7e01a1299840597329f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <iostream>
#include <string>
#include <utility>

#include "College.hh"
#include "University.hh"

auto College::set_college_name(std::string name) -> void {
  this->college_name = std::move(name);
}

auto College::get_college_name() -> std::string { return this->college_name; }

auto College::set_college_location(std::string location) -> void {
  this->college_location = std::move(location);
}

auto College::get_college_location() -> std::string {
  return this->college_location;
}

auto College::set_college_rank(int rank) -> void { this->college_rank = rank; }

auto College::get_college_rank() -> int { return this->college_rank; }

auto College::set_reqd_gpa_for_admit(double gpa) -> void {
  this->reqd_gpa_for_admit = gpa;
}

auto College::get_reqd_gpa_for_admit() -> double {
  return this->reqd_gpa_for_admit;
}

auto College::set_university_pin(const University &university) -> void {
  this->university_pin = university;
}

auto College::get_university_pin() -> University {
  return this->university_pin;
}

auto College::operator==(const University &university) const -> bool {
  return this->university_pin.get_univ_pin() == university.get_univ_pin();
}

auto College::print_pin() -> void {
  std::cout << "University Pin: " << this->university_pin.get_univ_pin()
            << '\n';
}