17 lines
756 B
C++
17 lines
756 B
C++
#ifndef HAL_X86_MAKE_PTR_H
|
|
#define HAL_X86_MAKE_PTR_H
|
|
#include "IHal.h"
|
|
#include "VReturnCode.h"
|
|
#include <memory>
|
|
class HalX86MakePtr
|
|
{
|
|
public:
|
|
HalX86MakePtr() = default;
|
|
virtual ~HalX86MakePtr() = default;
|
|
static std::shared_ptr<HalX86MakePtr> &GetInstance(std::shared_ptr<HalX86MakePtr> *impl = nullptr);
|
|
virtual RETURN_CODE Init() { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual RETURN_CODE UnInit() { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual RETURN_CODE CreateHalModuleInstance(std::shared_ptr<IHal> &impl);
|
|
virtual RETURN_CODE CreateNetworkModuleHandle(std::shared_ptr<VNetWorkHardware> &impl);
|
|
};
|
|
#endif // !HAL_X86_MAKE_PTR_H
|