refactor: add a dialog for choosing export encoding

This commit is contained in:
2024-08-03 17:11:34 +08:00
parent 4ee11c29c9
commit f179907a3a
13 changed files with 602 additions and 42 deletions

View File

@@ -4,7 +4,7 @@ add_library(VSWShared STATIC "")
target_sources(VSWShared
PRIVATE
# Sources
"GenericDataTypes.cpp"
"GenericHelper.cpp"
)
# Setup header files
target_sources(VSWShared
@@ -12,12 +12,18 @@ PUBLIC
FILE_SET HEADERS
FILES
# Headers
"GenericDataTypes.hpp"
"GenericHelper.hpp"
)
# Setup include directory
target_include_directories(VSWShared
PUBLIC
${CMAKE_CURRENT_LIST_DIR}
YYCC::YYCCommonplace
)
# Setup linked library
target_link_libraries(VSWShared
PUBLIC
YYCC::YYCCommonplace
)
# Setup C++ standard
set_target_properties(VSWShared

View File

@@ -1,22 +0,0 @@
#pragma once
#include <cinttypes>
namespace VSW::DataTypes {
enum class BehaviorLinkIOType : int {
Input,
Output
};
enum class ParameterLinkIOType : int {
ParameterIn,
ParameterOut,
/// @brief When using this, ignore [index] and [input_is_bb], set [input_index] to -1
ParameterLocal,
/// @brief When using this, ignore [index] and [input_is_bb], set [input_index] to -1
ParameterTarget,
/// @brief When using this, ignore [index], and [input_is_bb] will become [input_is_dataarray]
pParameterAttribute
};
}

7
shared/GenericHelper.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include "GenericHelper.hpp"
namespace VSW {
}

46
shared/GenericHelper.hpp Normal file
View File

@@ -0,0 +1,46 @@
#pragma once
#include <YYCCommonplace.hpp>
#include <cinttypes>
namespace VSW {
class Reporter {
public:
Reporter();
~Reporter();
protected:
void PrePrint(const YYCC::yycc_char8_t* strl);
public:
void Err(const YYCC::yycc_char8_t* strl);
void ErrF(const YYCC::yycc_char8_t* fmt, ...);
void Warn(const YYCC::yycc_char8_t* strl);
void WarnF(const YYCC::yycc_char8_t* fmt, ...);
void Info(const YYCC::yycc_char8_t* strl);
void InfoF(const YYCC::yycc_char8_t* fmt, ...);
void Debug(const YYCC::yycc_char8_t* strl);
void DebugF(const YYCC::yycc_char8_t* fmt, ...);
};
namespace DataTypes {
enum class BehaviorLinkIOType : int {
Input,
Output
};
enum class ParameterLinkIOType : int {
ParameterIn,
ParameterOut,
/// @brief When using this, ignore [index] and [input_is_bb], set [input_index] to -1
ParameterLocal,
/// @brief When using this, ignore [index] and [input_is_bb], set [input_index] to -1
ParameterTarget,
/// @brief When using this, ignore [index], and [input_is_bb] will become [input_is_dataarray]
pParameterAttribute
};
}
}