라이선스 파일을 로드하고 검증하는 클래스.
More...
#include <license_checker.hpp>
|
| LicenseChecker ()=default |
| 기본 생성자
|
|
| ~LicenseChecker ()=default |
| 소멸자
|
|
bool | load (const std::string &filepath) |
| 라이선스 파일을 로드합니다.
|
|
bool | check (const std::string &program, const std::string &version) |
| 로드된 라이선스 정보를 기반으로 프로그램/버전 검증을 수행합니다.
|
|
const auto & | getLicenseInfo () const |
| 현재 로드된 라이선스 정보를 반환합니다.
|
|
const auto & | getLicenseFilepath () const |
| 현재 사용된 라이선스 파일 경로를 반환합니다.
|
|
라이선스 파일을 로드하고 검증하는 클래스.
- 라이선스 파일에서 정보를 파싱
- 프로그램 및 버전에 대해 라이선스 유효성 검증
◆ check()
bool license::LicenseChecker::check |
( |
const std::string & | program, |
|
|
const std::string & | version ) |
로드된 라이선스 정보를 기반으로 프로그램/버전 검증을 수행합니다.
- Parameters
-
program | 프로그램 이름 |
version | 프로그램 버전 |
- Returns
- 검증 성공 여부 (true: 유효한 라이선스, false: 실패)
◆ getLicenseFilepath()
const auto & license::LicenseChecker::getLicenseFilepath |
( |
| ) |
const |
|
inline |
현재 사용된 라이선스 파일 경로를 반환합니다.
- Returns
- const 참조로 파일 경로 문자열 반환
◆ getLicenseInfo()
const auto & license::LicenseChecker::getLicenseInfo |
( |
| ) |
const |
|
inline |
현재 로드된 라이선스 정보를 반환합니다.
- Returns
- const 참조로 LicenseInfo 객체 반환
◆ load()
bool license::LicenseChecker::load |
( |
const std::string & | filepath | ) |
|
라이선스 파일을 로드합니다.
- Parameters
-
- Returns
- 성공 여부 (true: 성공, false: 실패)
The documentation for this class was generated from the following files: