41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#pragma once
|
|
/**
|
|
* @file data_query.h
|
|
* @brief
|
|
* @author your name (you@domain.com)
|
|
* @version 0.1
|
|
* @date 2025-09-28
|
|
*
|
|
* Copyright: Baosight Co. Ltd.
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
*
|
|
*/
|
|
#include <chrono>
|
|
#include <log4cplus/LOG.h>
|
|
#include <memory>
|
|
#include <mix_cc/ihyper_db.h>
|
|
#include <nlohmann/json.hpp>
|
|
using std::string;
|
|
using namespace std::chrono;
|
|
using std::chrono::system_clock;
|
|
using json = nlohmann::json;
|
|
using TimePoint = system_clock::time_point;
|
|
using TimeDur = milliseconds;
|
|
class DataQuery {
|
|
private:
|
|
std::unique_ptr<LOG> logger_; ///<日志
|
|
public:
|
|
DataQuery();
|
|
~DataQuery();
|
|
/**
|
|
* @brief
|
|
* @param tags My Param doc
|
|
* @param time_range My Param doc
|
|
* @param ihd_min_time_particlesMy Param doc
|
|
* @return json
|
|
*/
|
|
json ihd_query_data(vector<string> tags, mix_cc::time_range_t time_range,
|
|
TimeDur ihd_min_time_particles = 50ms);
|
|
json operator()(vector<string> tags, mix_cc::time_range_t time_range,
|
|
TimeDur ihd_min_time_particles = 50ms);
|
|
}; |