Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <thread>
- #include "formatingModules.hh"
- #include "log.hh"
- #include "module.hh"
- void update();
- wear::file::Module moduleSystem;
- wear::file::Directory dirSystem;
- int main() {
- using namespace std;
- thread thUpdate(update);
- // install modules
- {
- wear::loging::log(static_cast<std::string>("Installing Modules"), '\n');
- moduleSystem.create("programing", "code", langFormat, "C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\code", 13);
- moduleSystem.create("text", "text", textFormat, "C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\text", 2);
- moduleSystem.create("sound", "sound", soundFormat, "C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\sound", 2);
- moduleSystem.create("program", "program", programFormat, "C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\executable", 2);
- moduleSystem.create("photo", "photo", photoFormat, "C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\photo", 6);
- moduleSystem.create("video", "video", videoFormat, "C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\video", 2);
- wear::loging::log('\n', static_cast<std::string>("End Installing Modules\n"));
- }
- // parse modules
- {
- wear::loging::log('\n', static_cast<std::string>("Parse Modules\n"));
- moduleSystem.parse("programing");
- moduleSystem.parse("text");
- moduleSystem.parse("sound");
- moduleSystem.parse("program");
- moduleSystem.parse("photo");
- moduleSystem.parse("video");
- wear::loging::log('\n',static_cast<std::string>("End Parse Modules\n"));
- }
- thUpdate.join();
- return EXIT_SUCCESS;
- }
- void update() {
- using namespace std;
- // ~Module = map<string (Token) , vector<string> (FormatFile)>
- auto data = ~moduleSystem;
- auto dir{dirSystem.listFile("C:\\Users\\_kunicoder_\\Desktop\\FileAllocator\\processing")};
- std::this_thread::sleep_for(0.5s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement