'privPointLoc'
FileSystem.h
1 
7 #ifndef PRIVPOINTLOC_FILESYSTEM_H
8 #define PRIVPOINTLOC_FILESYSTEM_H
9 
10 #include <iostream>
11 #include <fstream>
12 
13 class FileSystem {
14 public:
15  FileSystem(const std::string &);
16 
17  void open_output_stream();
18  void open_output_stream(const std::ios_base::openmode &);
19  std::ofstream &get_output_stream();
20  void close_output_stream();
21  void open_input_stream();
22  void open_input_stream(const std::ios_base::openmode &);
23  std::ifstream &get_input_stream();
24  void close_input_stream();
25 
26 private:
27  std::string filesystem_path;
28  std::ifstream input_file_stream;
29  std::ofstream output_file_stream;
30 };
31 
32 #endif //PRIVPOINTLOC_FILESYSTEM_H
Definition: FileSystem.h:13