-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFileInput.h
More file actions
38 lines (29 loc) · 794 Bytes
/
FileInput.h
File metadata and controls
38 lines (29 loc) · 794 Bytes
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
#ifndef FILEINPUT_H
#define FILEINPUT_H
#include "Info.h"
/************************************
** FileInput Class **
** **
** Load Room information **
** from .txt file **
** **
************************************/
class FileInput
{
private:
//File object to be read from
static std::ifstream File;
public:
//Constructor and Destructor
FileInput();
~FileInput();
//Read info from file and return the info in an Info Object
const static Info& GetInfo();
//Initialize FileInput with correct Room
bool SetRoom(int roomNumber);
//Close the file and prepare for possible next load
void Close();
//Info object containing room information
static Info m_info;
};
#endif