mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-07-02 05:35:11 +00:00
Update sdv_packager (#6)
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
/********************************************************************************
|
||||
* 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
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef CORE_H
|
||||
#define CORE_H
|
||||
|
||||
#include <support/component_impl.h>
|
||||
#include "app_control.h"
|
||||
#include "app_settings.h"
|
||||
#include "module_control.h"
|
||||
#include "memory.h"
|
||||
#include "repository.h"
|
||||
@@ -27,11 +41,12 @@ public:
|
||||
~CSDVCore();
|
||||
|
||||
BEGIN_SDV_INTERFACE_MAP()
|
||||
SDV_INTERFACE_CHAIN_MEMBER(m_appctrl)
|
||||
SDV_INTERFACE_CHAIN_MEMBER(m_modulectrl)
|
||||
SDV_INTERFACE_CHAIN_MEMBER(m_memmgr)
|
||||
SDV_INTERFACE_CHAIN_MEMBER(m_repository)
|
||||
SDV_INTERFACE_CHAIN_MEMBER(m_loggerctrl)
|
||||
SDV_INTERFACE_CHAIN_MEMBER(GetAppControl())
|
||||
SDV_INTERFACE_CHAIN_MEMBER(GetAppSettings())
|
||||
SDV_INTERFACE_CHAIN_MEMBER(GetModuleControl())
|
||||
SDV_INTERFACE_CHAIN_MEMBER(GetMemoryManager())
|
||||
SDV_INTERFACE_CHAIN_MEMBER(GetRepository())
|
||||
SDV_INTERFACE_CHAIN_MEMBER(GetLoggerControl())
|
||||
END_SDV_INTERFACE_MAP()
|
||||
|
||||
/**
|
||||
@@ -39,57 +54,6 @@ public:
|
||||
* @return Reference to this class.
|
||||
*/
|
||||
static CSDVCore& GetInstance();
|
||||
|
||||
/**
|
||||
* @brief Return the application control.
|
||||
* @return Reference to the application control.
|
||||
*/
|
||||
CAppControl& GetAppControl();
|
||||
|
||||
/**
|
||||
* @brief Return the module control.
|
||||
* @return Reference to the module control.
|
||||
*/
|
||||
CModuleControl& GetModuleControl();
|
||||
|
||||
/**
|
||||
* @brief Return the memory manager.
|
||||
* @return Reference to the memory manager.
|
||||
*/
|
||||
CMemoryManager& GetMemoryManager();
|
||||
|
||||
/**
|
||||
* @brief Return the repository.
|
||||
* @return Reference to the repository.
|
||||
*/
|
||||
CRepository& GetRepository();
|
||||
|
||||
/**
|
||||
* @brief Return the logger control.
|
||||
* @return Reference to the logger control.
|
||||
*/
|
||||
CLoggerControl& GetLoggerControl();
|
||||
|
||||
/**
|
||||
* @brief Return the default logger.
|
||||
* @return Reference to the default logger.
|
||||
*/
|
||||
CLogger& GetDefaultLogger();
|
||||
|
||||
/**
|
||||
* @brief Return the application config class.
|
||||
* @return Reference to the application config class.
|
||||
*/
|
||||
CAppConfig& GetAppConfig();
|
||||
|
||||
private:
|
||||
CMemoryManager m_memmgr; ///< Memory manager - note: needs to be first in the list of members!
|
||||
CAppControl m_appctrl; ///< Application control
|
||||
CRepository m_repository; ///< Repository - note: repository should be present before module control!
|
||||
CModuleControl m_modulectrl; ///< Module control
|
||||
CLogger m_defaultlogger; ///< Default logger - note: the logger must be present before the logger control!
|
||||
CLoggerControl m_loggerctrl; ///< Logger control
|
||||
CAppConfig m_appconfig; ///< Application configuration class
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -98,53 +62,4 @@ private:
|
||||
*/
|
||||
extern "C" SDV_SYMBOL_PUBLIC sdv::IInterfaceAccess* SDVCore();
|
||||
|
||||
/**
|
||||
* @brief Return the application control.
|
||||
* @return Reference to the application control.
|
||||
*/
|
||||
CAppControl& GetAppControl();
|
||||
|
||||
/**
|
||||
* @brief Return the module control.
|
||||
* @return Reference to the module control.
|
||||
*/
|
||||
CModuleControl& GetModuleControl();
|
||||
|
||||
/**
|
||||
* @brief Return the memory manager.
|
||||
* @return Reference to the memory manager.
|
||||
*/
|
||||
CMemoryManager& GetMemoryManager();
|
||||
|
||||
/**
|
||||
* @brief Return the repository.
|
||||
* @return Reference to the repository.
|
||||
*/
|
||||
CRepository& GetRepository();
|
||||
|
||||
/**
|
||||
* @brief Return the logger control.
|
||||
* @return Reference to the logger control.
|
||||
*/
|
||||
CLoggerControl& GetLoggerControl();
|
||||
|
||||
/**
|
||||
* @brief Return the default logger.
|
||||
* @attention Use the logger control to access the logger.
|
||||
* @return Reference to the default logger.
|
||||
*/
|
||||
CLogger& GetDefaultLogger();
|
||||
|
||||
/**
|
||||
* @brief Return the application config class.
|
||||
* @return Reference to the application config class.
|
||||
*/
|
||||
CAppConfig& GetAppConfig();
|
||||
|
||||
/**
|
||||
* @brief Get the location of the core_services.sdv.
|
||||
* @return Path to the directory containing the loaded core directory.
|
||||
*/
|
||||
std::filesystem::path GetCoreDirectory();
|
||||
|
||||
#endif // !defined CORE_H
|
||||
Reference in New Issue
Block a user