22 lines
698 B
C++
22 lines
698 B
C++
#ifndef IIPCCONFIG_H
|
|
#define IIPCCONFIG_H
|
|
#include "StatusCode.h"
|
|
#include <memory>
|
|
enum class IpcConfigKey
|
|
{
|
|
TEST_NUM = 0,
|
|
END
|
|
};
|
|
class IIpcConfig
|
|
{
|
|
public:
|
|
IIpcConfig() = default;
|
|
virtual ~IIpcConfig() = default;
|
|
static std::shared_ptr<IIpcConfig> &GetInstance(std::shared_ptr<IIpcConfig> *impl = nullptr);
|
|
virtual const StatusCode Init(void) { return CreateStatusCode(STATUS_CODE_OK); }
|
|
virtual const StatusCode UnInit(void) { return CreateStatusCode(STATUS_CODE_OK); }
|
|
virtual const int GetInt(const IpcConfigKey &key) { return -1; }
|
|
virtual void SetInt(const IpcConfigKey &key, const int &value) {}
|
|
};
|
|
bool CreateIpcConfig(void);
|
|
#endif |