Program Listing for File hardware_ident.h#

Return to documentation for file (hardware_ident\hardware_ident.h)

/********************************************************************************
 * 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 HARDWARE_IDENT_H
#define HARDWARE_IDENT_H

#include <interfaces/hw_ident.h>
#include <support/component_impl.h>

class CHardwareIdent : public sdv::CSdvObject, public sdv::hardware::IHardwareID
{
public:

    BEGIN_SDV_INTERFACE_MAP()
        SDV_INTERFACE_ENTRY(sdv::hardware::IHardwareID)
    END_SDV_INTERFACE_MAP()

    // Object declarations
    DECLARE_OBJECT_CLASS_TYPE(sdv::EObjectType::system_object)
    DECLARE_OBJECT_CLASS_NAME("HardwareIdentificationService")
    DECLARE_OBJECT_SINGLETON()


    uint64_t GetHardwareID() override;
};
DEFINE_SDV_OBJECT(CHardwareIdent)

#endif // !define HARDWARE_IDENT_H