14#include <unordered_set>
34 SQLOG_I(
"Sending metadata to client (feature: API_SUPPORT)");
36 SQLOG_I(
"API_SUPPORT feature not available. Skipping metadata transmission.");
46 for (
const auto& f : features) {
48 SQLOG_I(
"Enabled feature : %s", f.c_str());
58 return m_features.find(key) != m_features.end();
62 std::unordered_set<std::string> m_features;
80#define HAS_FEATURE(fkey) ::license::getFeatureControl().hasFeature(fkey)
라이선스 기능(feature)을 제어하는 클래스.
Definition license_features.hpp:25
void setFeatures(const std::vector< std::string > &features)
활성화된 기능 목록을 설정합니다.
Definition license_features.hpp:44
bool hasFeature(const std::string &key) const
특정 기능이 활성화되어 있는지 확인합니다.
Definition license_features.hpp:57
void sendMetadataToClient()
클라이언트로 메타데이터를 전송합니다.
Definition license_features.hpp:32
FeatureControl & getFeatureControl()
전역 FeatureControl 인스턴스를 반환합니다.
Definition license_features.hpp:70
통합 로깅 유틸리티를 제공하는 헤더 파일입니다.