hunting/hal/include/IHalCpp.h
xiaojiazhu 080c1f6c64 1.Delete hal.
2.Add new hal.
2023-08-17 08:23:22 -07:00

14 lines
475 B
C++

#ifndef IHAL_CPP_H
#define IHAL_CPP_H
#include "ReturnCode.h"
#include <memory>
class IHalCpp
{
public:
IHalCpp() = default;
virtual ~IHalCpp() = default;
static std::shared_ptr<IHalCpp> &GetInstance(std::shared_ptr<IHalCpp> *impl = nullptr);
virtual RETURN_CODE_C Init(void) { return CreateReturnCode(C_RETURN_CODE_VIRTUAL_FUNCTION); }
virtual RETURN_CODE_C UnInit(void) { return CreateReturnCode(C_RETURN_CODE_VIRTUAL_FUNCTION); }
};
#endif