mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-02-05 15:18:45 +00:00
33
sdv_services/core/toml_parser_util.h
Normal file
33
sdv_services/core/toml_parser_util.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef CONFIG_UTILITY_H
|
||||
#define CONFIG_UTILITY_H
|
||||
|
||||
#include <support/component_impl.h>
|
||||
#include "toml_parser/parser_toml.h"
|
||||
|
||||
/**
|
||||
* @brief Configuration utility component.
|
||||
*/
|
||||
class CTOMLParserUtility : public sdv::CSdvObject
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief Default constructor
|
||||
*/
|
||||
CTOMLParserUtility() = default;
|
||||
|
||||
// Interface map
|
||||
BEGIN_SDV_INTERFACE_MAP()
|
||||
SDV_INTERFACE_CHAIN_MEMBER(m_parser)
|
||||
END_SDV_INTERFACE_MAP()
|
||||
|
||||
// Object declarations
|
||||
DECLARE_OBJECT_CLASS_TYPE(sdv::EObjectType::Utility)
|
||||
DECLARE_OBJECT_CLASS_NAME("TOMLParserUtility")
|
||||
|
||||
private:
|
||||
CParserTOML m_parser; ///< Configuration parser
|
||||
};
|
||||
|
||||
DEFINE_SDV_OBJECT_NO_EXPORT(CTOMLParserUtility)
|
||||
|
||||
#endif // !defined CONFIG_UTILITY_H
|
||||
Reference in New Issue
Block a user