/
thomas-king
/
SourceManager
Обзор
Документация
Войти
/
thomas-king
/
SourceManager
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
include/Services/SourceManager.h
35 строк
561 B
Ace Rodstin
Task #39. Add write capability to SourceManager.
24 окт 2023, 15:32
24 окт 2023, 15:32
bfd3834
Код
Авторство
О чём код?
// // SourceManager.h // SourceManager // // Created by Ace Rodstin on 10/24/23. // Updated by Ace Rodstin on 10/24/23. // // Copyright © 2023 Ace Rodstin. All rights reserved. // #ifndef SOURCE_MANAGER_SOURCEMANAGER_H #define SOURCE_MANAGER_SOURCEMANAGER_H #include <string> #include "FileManager.h" using namespace std; class SourceManager { public: enum WriteOption { REPLACE, APPEND }; string read(string filePath); void write(string filePath, string sourceCode, WriteOption writeOption); private: FileManager fileManager; }; #endif