hunting/hal/include/IHalCpp.h
xiaojiazhu a80a8f7cee 1.Add clang-tidy in CMakeList.txt.
2.Add clang-tidy tools.
2023-09-02 04:26:30 -07:00

14 lines
463 B
C++

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