You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
500 B
C++

#pragma once
#include <string>
#include <memory>
#include "ILotInfo.h"
#include "LotInfoStruct.h"
class CRuntimeLotInfoFactory
{
public:
// ctor
explicit CRuntimeLotInfoFactory(const std::string& strType = "ini");
virtual ~CRuntimeLotInfoFactory();
void Create();
ILotInfo<nsLotInfo::stLotInfo>& Get();
private:
std::string getEnv(const std::string& strVarName);
//
std::string m_strType{ "ini" };
std::unique_ptr<ILotInfo<nsLotInfo::stLotInfo>> m_fty;
};