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

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
};
}
}