Project CS 3377

profileSuvrat
FileWriter.h.pdf

4/6/2021 https://elearning.utdallas.edu/bbcswebdav/pid-4080035-dt-content-rid-103310994_1/courses/2212-merged-CS3377501-SE3377501/FileWriter.h

https://elearning.utdallas.edu/bbcswebdav/pid-4080035-dt-content-rid-103310994_1/courses/2212-merged-CS3377501-SE3377501/FileWriter.h 1/1

// // Created by Erik Peterson on 2/9/21. //

#ifndef INC_21S_CS3377_PROJECT_FILEWRITER_H #define INC_21S_CS3377_PROJECT_FILEWRITER_H

#include <list> #include <string> #include "Util.h"

class FileWriter { public: void addEntry(const EntryInfo& entryInfo); void writeFile(const char* fileToWrite); void writeFile(int fileDescriptor); private: std::string getErrnoString();

std::list<EntryInfo> entries; };

#endif //INC_21S_CS3377_PROJECT_FILEWRITER_H