Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
PanelCustomBlocksUseCases.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_UI_PANELS_EDITOR_LOGIC_PANELCUSTOMBLOCKSUSECASES_HPP_
2#define IV_SRC_UI_PANELS_EDITOR_LOGIC_PANELCUSTOMBLOCKSUSECASES_HPP_
3
4#include "core/types.hpp"
5
6#include <string>
7#include <optional>
8
10{
11
13{
14 bool isSuccessful {false};
15
16 std::optional<std::string> successMsg;
17 std::optional<iv::types::errorMessage> errorMsg;
18};
19
21{
22public:
25
26 static UseCaseResult loadLibrary(const std::string &libraryFile, std::string &libraryName);
27 static UseCaseResult saveLibrary(iv::types::logic::customBlockId customBlockId, std::string &resultMsg);
28 static UseCaseResult cloneLibrary(iv::types::logic::customBlockId customBlockId, const std::string &cloneName,
29 iv::types::logic::customBlockId &resultCustomBlockId);
30};
31
32}// namespace iv::panels::editor::logic
33
34#endif//IV_SRC_UI_PANELS_EDITOR_LOGIC_PANELCUSTOMBLOCKSUSECASES_HPP_
Definition PanelCustomBlocksUseCases.hpp:21
static UseCaseResult saveLibrary(iv::types::logic::customBlockId customBlockId, std::string &resultMsg)
Definition PanelCustomBlocksUseCases.cpp:81
static UseCaseResult cloneLibrary(iv::types::logic::customBlockId customBlockId, const std::string &cloneName, iv::types::logic::customBlockId &resultCustomBlockId)
Definition PanelCustomBlocksUseCases.cpp:120
static UseCaseResult loadLibrary(const std::string &libraryFile, std::string &libraryName)
Definition PanelCustomBlocksUseCases.cpp:14
Definition ModelTreeLogicComponents.cpp:32
uint16_t customBlockId
Definition types.hpp:130
Definition PanelCustomBlocksUseCases.hpp:13
std::optional< iv::types::errorMessage > errorMsg
Definition PanelCustomBlocksUseCases.hpp:17
bool isSuccessful
Definition PanelCustomBlocksUseCases.hpp:14
std::optional< std::string > successMsg
Definition PanelCustomBlocksUseCases.hpp:16