-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHall.h
82 lines (69 loc) · 1.55 KB
/
Hall.h
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/** Hall class
*
* #include "Hall.h" <BR>
* -llib
*
*/
#ifndef HALL_H
#define HALL_H
// SYSTEM INCLUDES
#include<iostream>
// Hall class definition
class Hall {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Hall(float = 0.0, float = 1.0);
// Use compiler-generated copy constructor, assignment, and destructor.
// Hall(const Hall&);
// Hall& operator=(const Hall&);
// ~Hall();
// OPERATORS
/** Stream Insertion operator.
*
* @param os Standard Output Stream.
* @param from The value to be inserted to the output stream.
*
* @return A reference to the standard output stream.
*/
friend std::ostream& operator <<(std::ostream& os, const Hall& from);
/** Stream Extraction operator.
*
* @param is Standard Intput Stream.
* @param to The value to be extracted from the input stream.
*
* @return A reference to the standard input stream.
*/
friend std::istream& operator >>(std::istream& is, Hall& to);
// OPERATIONS
/** Function that stores item in the Hall
*
* @param void
*
* @return void
*/
void Store();
// ACCESS
// setters
void SetWidth(float = 0.0);
void SetLength(float = 0.0);
void SetHall(float = 0.0, float = 0.0);
/**
# @overload void SetHall(const Hall& aHall);
*/
void SetHall(const Hall& aHall);
// getters
float GetWidth() const;
float GetLength() const;
float GetArea() const;
const Hall& GetHall()const;
private:
// DATA MEMBERS
float mWidth;
float mLength;
float mArea;
};
// end class Hall
#endif
// _HALL_H_