Advertisement
Maco153

StudentFile.h

Mar 21st, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #ifndef StudentFile_H
  2. #define StudentFile_H
  3.  
  4.  
  5. #include <iostream>
  6. #include <thread>
  7. #include <fstream>
  8. #include <sstream>
  9. #include <mutex>
  10. #include "StudentList.h"
  11. using namespace std;
  12.  
  13.  
  14. class StudentFile
  15. {
  16.     private:
  17.           ifstream student_file;
  18.           StudentList * studentList;
  19.           std::mutex* mtx;
  20.     public:
  21.  
  22.         void set_mutex(std::mutex* my);
  23.         StudentFile();
  24.         StudentFile(StudentList * p_studentList,const char * filename);
  25.          int processFile(StudentFile* name);
  26.         static int startThread(StudentFile* me);
  27.         ~StudentFile();
  28. };
  29.  
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement