.. _program_listing_file_include_MainObjects_editorObject_updatelog.cpp: Program Listing for File updatelog.cpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include\MainObjects\editorObject\updatelog.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include "editorObject.hpp" template <> PDJE_API bool editorObject::UpdateLog() { return E_obj->KVHandler.first->UpdateLog(); } template <> PDJE_API bool editorObject::UpdateLog(const DONT_SANITIZE &branchName) { return E_obj->KVHandler.first->UpdateLog(branchName); } template <> PDJE_API bool editorObject::UpdateLog() { return E_obj->mixHandle.first->UpdateLog(); } template <> PDJE_API bool editorObject::UpdateLog(const DONT_SANITIZE &branchName) { return E_obj->mixHandle.first->UpdateLog(branchName); } template <> PDJE_API bool editorObject::UpdateLog() { return E_obj->noteHandle.first->UpdateLog(); } template <> PDJE_API bool editorObject::UpdateLog(const DONT_SANITIZE &branchName) { return E_obj->noteHandle.first->UpdateLog(branchName); } template <> PDJE_API bool editorObject::UpdateLog() { for (auto &i : E_obj->musicHandle) { if (!i.gith->UpdateLog()) { critlog("failed to update log. from editorObject UpdateLog(Music " "obj). musicName:"); critlog(i.musicName); return false; } }; return true; } template <> PDJE_API bool editorObject::UpdateLog(const UNSANITIZED &musicName) { auto safeMus = PDJE_Name_Sanitizer::sanitizeFileName(musicName); if (!safeMus) { critlog("Music name is not sanitized from editorObject UpdateLog. " "musicName: "); critlog(musicName); return false; } for (auto &i : E_obj->musicHandle) { if (i.musicName == safeMus) { return i.gith->UpdateLog(); } }; warnlog("music is not exists. from editorObject UpdateLog(Music obj). " "musicName:"); warnlog(musicName); return false; }