cmake库改造前
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include "Core/Base/SM_RingBuffer.h"
|
||||
#include "Core/Serial/Serial_Coro.h"
|
||||
#include "Core/Statistics/Frequency_Limit.h"
|
||||
#include "Core/Statistics/Statistics.h"
|
||||
#include "Core/transmit_protocol/core/statistics.h"
|
||||
#include "Database.h"
|
||||
#include "Local_Server/global_include.h"
|
||||
#include "PlayBack.h"
|
||||
#include "Psc_Cpp_Core/Base/SM_RingBuffer.h"
|
||||
#include "Psc_Cpp_Core/Serial/Serial_Coro.h"
|
||||
#include "Psc_Cpp_Core/Statistics/Frequency_Limit.h"
|
||||
#include "Psc_Cpp_Core/Statistics/Statistics.h"
|
||||
#include "Psc_Cpp_Core/transmit_protocol/core/statistics.h"
|
||||
#include "global.h"
|
||||
// 这个函数专门装cpu密集函数 放到线程池去处理
|
||||
class Data_Source_Handler : public DataBase {
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
#pragma once
|
||||
#include "Core/Base/JSON.h"
|
||||
#include "Core/socket/export.h"
|
||||
#include "SSR/export.h"
|
||||
#include <SQLiteCpp/SQLiteCpp.h>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
@@ -9,30 +6,29 @@
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "Psc_Cpp_Core/Base/JSON.h"
|
||||
#include "Psc_Cpp_Core/socket/export.h"
|
||||
#include "SSR/export.h"
|
||||
// 用于debug 散乱的飞机从何而来
|
||||
// #define Cache_Some_Mode_S
|
||||
#ifdef Cache_Some_Mode_S
|
||||
#define Cache_Some_Mode_S_Num 20
|
||||
#define Cache_Some_Mode_S_Num 20
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define Parse(t, Field) \
|
||||
auto& _##t = info.Field.value; \
|
||||
info.Field.time = info.timestamp; \
|
||||
if (!_##t.has_value()) _##t = std::remove_reference_t<decltype(_##t)>::ValueType(); \
|
||||
_##t.value().parse(msg); \
|
||||
auto& t = _##t.value();
|
||||
// ret.append(NAME.value.has_value()? Psc::Json(STRINGIFY(NAME##_time), NAME.time) : Psc::Json(STRINGIFY(NAME##_time), nullptr));
|
||||
auto& _##t = info.Field.value; \
|
||||
info.Field.time = info.timestamp; \
|
||||
if (!_##t.has_value()) \
|
||||
_##t = std::remove_reference_t<decltype(_##t)>::ValueType(); \
|
||||
_##t.value().parse(msg); \
|
||||
auto& t = _##t.value();
|
||||
// ret.append(NAME.value.has_value()? Psc::Json(STRINGIFY(NAME##_time), NAME.time) : Psc::Json(STRINGIFY(NAME##_time),
|
||||
// nullptr));
|
||||
#define STRINGIFY(x) #x
|
||||
#define ADD_Json(NAME) ret.children.emplace_back(STRINGIFY(NAME), NAME);
|
||||
#define ADD_Json_RET(NAME) \
|
||||
if (NAME.has_value()) \
|
||||
{ \
|
||||
ret.children.emplace_back(STRINGIFY(NAME), NAME.value()); \
|
||||
} else \
|
||||
{ \
|
||||
ret.children.emplace_back(STRINGIFY(NAME), nullptr); \
|
||||
}
|
||||
|
||||
if (NAME.has_value()) { \
|
||||
ret.children.emplace_back(STRINGIFY(NAME), NAME.value()); \
|
||||
} \
|
||||
else { \
|
||||
ret.children.emplace_back(STRINGIFY(NAME), nullptr); \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user