mirror of
				https://gitee.com/jiuyilian/embedded-framework.git
				synced 2025-10-24 18:20:15 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			463 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			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 |