mirror of
https://github.com/deepinsight/insightface.git
synced 2025-12-30 16:12:27 +00:00
35 lines
749 B
C++
35 lines
749 B
C++
//
|
|
// Created by Tunm-Air13 on 2024/4/7.
|
|
//
|
|
#pragma once
|
|
#ifndef INSPIREFACE_ENVIRO_H
|
|
#define INSPIREFACE_ENVIRO_H
|
|
|
|
#include <string>
|
|
|
|
class Enviro {
|
|
public:
|
|
static Enviro& getInstance() {
|
|
static Enviro instance;
|
|
return instance;
|
|
}
|
|
|
|
Enviro(Enviro const&) = delete;
|
|
void operator=(Enviro const&) = delete;
|
|
|
|
std::string getPackName() const { return packName; }
|
|
void setPackName(const std::string& name) { packName = name; }
|
|
|
|
const std::string &getTestResDir() const { return testResDir; }
|
|
|
|
void setTestResDir(const std::string &dir) { Enviro::testResDir = dir; }
|
|
|
|
private:
|
|
Enviro() {}
|
|
|
|
std::string packName = "Pikachu";
|
|
std::string testResDir = "test_res";
|
|
};
|
|
|
|
#endif //INSPIREFACE_ENVIRO_H
|