2026-03-27 14:12:49 +01:00
|
|
|
/********************************************************************************
|
|
|
|
|
* Copyright (c) 2025-2026 ZF Friedrichshafen AG
|
|
|
|
|
*
|
|
|
|
|
* This program and the accompanying materials are made available under the
|
|
|
|
|
* terms of the Apache License Version 2.0 which is available at
|
|
|
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*
|
|
|
|
|
* Contributors:
|
|
|
|
|
* Erik Verhoeven - initial API and implementation
|
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
2025-11-04 13:28:06 +01:00
|
|
|
#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
|
2026-03-27 14:12:49 +01:00
|
|
|
DECLARE_OBJECT_CLASS_TYPE(sdv::EObjectType::utility)
|
2025-11-04 13:28:06 +01:00
|
|
|
DECLARE_OBJECT_CLASS_NAME("TOMLParserUtility")
|
|
|
|
|
|
|
|
|
|
private:
|
2026-01-16 11:40:02 +01:00
|
|
|
toml_parser::CParser m_parser; ///< Configuration parser
|
2025-11-04 13:28:06 +01:00
|
|
|
};
|
|
|
|
|
|
2026-03-27 14:12:49 +01:00
|
|
|
DEFINE_SDV_OBJECT(CTOMLParserUtility)
|
2025-11-04 13:28:06 +01:00
|
|
|
|
|
|
|
|
#endif // !defined CONFIG_UTILITY_H
|