Files
dcapp/datacenter/bizService/F_Tool.h
T
2025-02-28 17:34:41 +08:00

28 lines
847 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @Description: file content
* @Author: why
* @version:
* @Date: 2025-02-28 14:32:55
* @LastEditors: why
* @LastEditTime: 2025-02-28 16:28:59
*/
#include <string>
#include <vector>
#include <map>
class Tool{
public :
void topic_split(const std::string& str, char delimiter,std::vector<std::string>&topic);//0:dst 1:src 2:sid 3:fid
std::string now_to_string();
time_t string_to_now(std::string stamp);
void hexstr_to_str(void *dst, const void *src, int src_len);
void str_to_hexstr(void *dst, const void *src, int src_len);
int encode_blob(void *dst, int max_len, const void *src, int src_len);
int decode_blob(void *dst, int max_len, const void *src);
//std::map<usigned int ,std::map<int,std::string>> Directionary;
Tool(){};
~Tool(){};
};