ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
|
ImSQL 엔진과 통신하는 API 서버 클래스. More...
#include <api_server.hpp>
Public Member Functions | |
ApiServer (const std::string &ip, int port) | |
ApiServer 생성자 | |
void | init () |
서버 초기화 (라우트 등록) | |
void | start () |
서버 시작 (비동기 실행) | |
void | stop () |
서버 중단 요청 | |
void | addRoute (const std::string &path, crow::HTTPMethod method, HandlerFunc handler) |
API 라우트를 추가합니다. | |
crow::response | handleFeatureCheck (const crow::request &) |
라이선스 기능 체크 핸들러 | |
crow::response | handleDemoAdd (const crow::request &) |
Demo용 간단한 덧셈 API. | |
crow::response | handleExcelUpload (const crow::request &) |
Excel (CSV) 파일 업로드 및 파싱 API. | |
crow::response | handleCreateTable (const crow::request &req) |
새로운 테이블 생성 핸들러 | |
crow::response | handleReadTable (const crow::request &req) |
테이블 데이터 읽기 핸들러 | |
crow::response | handleUpdateTable (const crow::request &req) |
테이블 데이터 업데이트 (row 추가) 핸들러 | |
crow::response | handleDeleteTable (const crow::request &req) |
테이블 삭제 핸들러 | |
crow::response | handleJoinTable (const crow::request &req) |
두 테이블을 조인(merge)하는 핸들러 | |
crow::response | handleCopyTable (const crow::request &req) |
테이블 복사 핸들러 | |
crow::response | handleCreateExcel (const crow::request &req) |
Excel 스타일 테이블 생성 핸들러 | |
crow::response | handleReadExcel (const crow::request &req) |
Excel 스타일 테이블 읽기 핸들러 | |
crow::response | handleUpdateExcel (const crow::request &req) |
Excel 스타일 테이블 업데이트 핸들러 | |
crow::response | handleDeleteExcel (const crow::request &req) |
Excel 스타일 테이블 삭제 핸들러 | |
crow::response | handleSmartPtrShared (const crow::request &) |
SharedPtr 테스트 핸들러 | |
crow::response | handleSmartPtrUnique (const crow::request &) |
UniquePtr 테스트 핸들러 | |
crow::response | startEngineServer (const crow::request &req) |
엔진 초기화 및 실행 핸들러 | |
crow::response | stopEngineServer (const crow::request &req) |
엔진 종료 요청 핸들러 | |
ImSQL 엔진과 통신하는 API 서버 클래스.
ApiServer::ApiServer | ( | const std::string & | ip, |
int | port ) |
ApiServer 생성자
ip | 바인딩할 IP 주소 |
port | 사용할 포트 번호 |
void ApiServer::addRoute | ( | const std::string & | path, |
crow::HTTPMethod | method, | ||
HandlerFunc | handler ) |
API 라우트를 추가합니다.
path | 경로 |
method | HTTP 메소드 |
handler | 요청 핸들러 함수 |