.. _program_listing_file_include_MainObjects_editorObject_deleteline.cpp: Program Listing for File deleteline.cpp ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``include/MainObjects/editorObject/deleteline.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include "editorObject.hpp" int editorObject::deleteLine(const EDIT_ARG_MIX &obj, bool skipType, bool skipDetail) { const int deleted_lines = E_obj->mixHandle.second.deleteLine(obj, skipType, skipDetail); if (DefaultSaveFunction()) { return deleted_lines; } else { infolog("nothing to remove. from note deleteLine"); return 0; } } template <> PDJE_API int editorObject::deleteLine(const EDIT_ARG_NOTE &obj) { const int deleted_lines = E_obj->noteHandle.second.deleteLine(obj); if (DefaultSaveFunction()) { return deleted_lines; } else { infolog("nothing to remove. from note deleteLine"); return 0; } } template <> PDJE_API int editorObject::deleteLine(const EDIT_ARG_KEY_VALUE &obj) { const int deleted_lines = E_obj->KVHandler.second.deleteLine(obj.second); if (DefaultSaveFunction()) { return deleted_lines; } else { infolog("nothing to remove. from KV deleteLine"); return 0; } } template <> PDJE_API int editorObject::deleteLine(const EDIT_ARG_MUSIC &obj) { for (auto &i : E_obj->musicHandle) { if (i.musicName == obj.musicName) { const int deleted_lines = i.jsonh.deleteLine(obj.arg); if (DefaultSaveFunction(i, obj)) { return deleted_lines; } else { infolog("nothing to remove. from music deleteLine"); return 0; } } } warnlog("music is not exists. from editorObject deleteLine(Music obj)"); return 0; }