#ifndef DEMO_H_ #define DEMO_H_ #include #include #include #include #include"FolderStructure.h" #include"FileNameRetrieval.h" using std::tuple; using std::ios; using std::fstream; using std::cout; using std::endl; using std::get; using std::array; template class Demo { vector passwordFilenames; vector> dates; vector> grass; public: Demo(); ~Demo(); void fuckingDoShit(); void doFuckingOtherShit(); vector retrievePasswordFilenames() const; vector> retrieveGrass() const; }; template Demo::Demo() { fuckingDoShit(); } template Demo::~Demo() { } template void Demo::fuckingDoShit() { FileNameRetrieval fnr{}; fnr.retrievePasswordNames(); vector stupidBitch{fnr.passwordNameContainer()}; for (auto sb : stupidBitch) { passwordFilenames.push_back(sb); } doFuckingOtherShit(); } template void Demo::doFuckingOtherShit() { fstream metaShit; for (auto shit : passwordFilenames) { metaShit.open(FolderStructure::passwordDirectory+shit.c_str(), std::ios::in); auto year = 0, month = 0, dayOfMonth = 0; metaShit >> year; metaShit >> month; metaShit >> dayOfMonth; grass.push_back(array{year, month, dayOfMonth}); metaShit.close(); } } template vector Demo::retrievePasswordFilenames() const { return passwordFilenames; } template vector> Demo::retrieveGrass() const { return grass; } #endif