ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
Loading...
Searching...
No Matches
utils.hpp File Reference

다양한 범용 유틸리티 함수와 공통 설정을 포함하는 헤더 파일입니다. More...

#include <utils/log.hpp>
#include <utils/config_loader.hpp>
#include <utils/engine_config.hpp>
#include <memory>
#include <vector>
#include <string>
#include <license/license.hpp>
#include <iomanip>
#include <chrono>
#include <fstream>
#include <secure/secure.hpp>
#include <crow/app.h>
#include <crow/http_response.h>
#include <crow/json.h>
#include <api/smartptr/smartptr.hpp>
#include <api/handler/handler_base.hpp>
#include <nlohmann/json.hpp>
+ Include dependency graph for utils.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using json = nlohmann::json
 nlohmann JSON을 간편하게 사용하기 위한 alias
 

Functions

std::string utils::getCurrentTime ()
 현재 시간을 문자열로 반환합니다.
 
std::string utils::sanitizeFilename (const std::string &raw)
 파일 이름에 사용할 수 없는 문자를 제거합니다.
 
std::string utils::trim (const std::string &str)
 문자열 양 끝의 공백을 제거합니다.
 

Detailed Description

다양한 범용 유틸리티 함수와 공통 설정을 포함하는 헤더 파일입니다.

Function Documentation

◆ getCurrentTime()

std::string utils::getCurrentTime ( )

현재 시간을 문자열로 반환합니다.

Returns
"YYYY-MM-DD HH:MM:SS" 형식의 현재 시간 문자열

◆ sanitizeFilename()

std::string utils::sanitizeFilename ( const std::string & raw)

파일 이름에 사용할 수 없는 문자를 제거합니다.

Parameters
raw원본 파일 이름 문자열
Returns
안전한 파일 이름 문자열

◆ trim()

std::string utils::trim ( const std::string & str)

문자열 양 끝의 공백을 제거합니다.

Parameters
str입력 문자열
Returns
공백이 제거된 문자열