45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <string>
|
|||
|
#include <vector>
|
|||
|
#include <sqlite3.h>
|
|||
|
#include <stdexcept>
|
|||
|
#include <map>
|
|||
|
#include <filesystem>
|
|||
|
#include <cstdlib>
|
|||
|
#include <fstream>
|
|||
|
#include <cstring>
|
|||
|
#include <iostream>
|
|||
|
|
|||
|
namespace fs = std::filesystem;
|
|||
|
|
|||
|
struct InterfaceData {
|
|||
|
std::string interfaceName; ///< 接口名称
|
|||
|
std::string interfaceType; ///< 接口类型
|
|||
|
int interfaceIsArray; ///< 是否为数组
|
|||
|
int interfaceArraySize_1; ///< 数组第一维大小
|
|||
|
int interfaceArraySize_2; ///< 数组第二维大小
|
|||
|
std::string interfaceNotes; ///< 接口注释
|
|||
|
};
|
|||
|
|
|||
|
struct StructInterfaceData {
|
|||
|
std::string modelStructName; ///< 模型结构名称
|
|||
|
std::vector<InterfaceData> interfaceData;
|
|||
|
};
|
|||
|
|
|||
|
struct ATAInterfaceData {
|
|||
|
std::string ataName; ///< ATA名称
|
|||
|
std::vector<StructInterfaceData> structInterfaceData;
|
|||
|
};
|
|||
|
|
|||
|
struct AllInterfaceData {
|
|||
|
std::string systemName; ///< 系统名称
|
|||
|
std::string planeName; ///< 飞机名称
|
|||
|
std::vector<ATAInterfaceData> ataInterfaceData;
|
|||
|
};
|
|||
|
|
|||
|
/**
|
|||
|
* @brief 获取XNCore环境变量
|
|||
|
* @return std::string 返回XNCore环境变量的值,如果环境变量不存在则返回空字符串
|
|||
|
*/
|
|||
|
std::string GetXNCoreEnv();
|