SoftwareEngineeringStudyProjects / KnowYourKnowledge

Combination of Personal Knowledge Management and Learning Management System. This is a study project aimed at creating relatively big codebase for object-oriented programming and similar courses.
MIT License
2 stars 4 forks source link

Use streams for file I/O #19

Open kzhereb opened 2 years ago

kzhereb commented 2 years ago

Instead of custom methods like toFile, write_to_file, ... (or in addition to them) - implement operator<<(ostream) This would allow more flexible code - can choose which stream to use (cout, file, string, ...) Also would allow unit testing without creating/reading files

kzhereb commented 2 years ago

Implemented for Config class in f9b21042da122a7c580e492622643c34a50401cd (actually in 8743a5d1ca86d1edee5e5136e7c0f94ff9361703 and then fixing unit tests)

Need to do this for other classes (do it for existing classes, and then use the same approach for new classes)