summaryrefslogtreecommitdiff
path: root/High_School_Impl.cpp
blob: 11bd770637e2641575c6241ffdefe18761124959 (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
50
51
52
53
54
55
#include <iostream>
#include <string>
#include <utility>

#include "High_School.hh"
#include "University.hh"

auto High_School::set_high_school_name(std::string name) -> void {
  this->high_school_name = std::move(name);
}

auto High_School::get_high_school_name() -> std::string {
  return this->high_school_name;
}

auto High_School::set_high_school_location(std::string location) -> void {
  this->high_school_location = std::move(location);
}

auto High_School::get_high_school_location() -> std::string {
  return this->high_school_location;
}

auto High_School::set_high_school_rank(int rank) -> void {
  this->high_school_rank = rank;
}

auto High_School::get_high_school_rank() -> int {
  return this->high_school_rank;
}

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

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

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

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

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

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