ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1
13#pragma once
14
15#ifdef _WIN32
16#define WIN32_LEAN_AND_MEAN
17#define NOMINMAX
18#endif
19
20#ifndef UTILS_H
21#define UTILS_H
22
23#include <utils/log.hpp>
26#include <memory>
27#include <vector>
28#include <string>
29#include <license/license.hpp>
30#include <iomanip>
31#include <chrono>
32#include <fstream>
33
34#include <secure/secure.hpp>
35
36#include <crow/app.h>
37#include <crow/http_response.h>
38#include <crow/json.h>
39
42#include <nlohmann/json.hpp>
43
45using json = nlohmann::json;
46
47namespace utils {
48
54std::string getCurrentTime();
55
62std::string sanitizeFilename(const std::string& raw);
63
70std::string trim(const std::string& str);
71
72} // namespace utils
73
74#endif // UTILS_H // end of Utils
설정 파일 로딩 유틸리티를 정의하는 파일입니다.
엔진 설정 구조체를 정의하는 파일입니다.
nlohmann::json json
nlohmann JSON을 간편하게 사용하기 위한 alias
Definition utils.hpp:45
API 핸들러에서 공통적으로 사용하는 기본 타입 및 유틸리티를 정의합니다.
라이선스 모듈 통합 헤더 파일입니다.
통합 로깅 유틸리티를 제공하는 헤더 파일입니다.
프로그램 보안(무결성 검증 및 복제 방지) 유틸리티 헤더 파일입니다.
참조 카운트를 수동 관리하는 Smart Pointer 유틸리티를 제공합니다.