Precommit (#1)

* first commit

* cleanup
This commit is contained in:
tompzf
2025-11-04 13:28:06 +01:00
committed by GitHub
parent dba45dc636
commit 6ed4b1534e
898 changed files with 256340 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
#include <iostream>
#include "example_interfaces.h"
#include <support/component_impl.h>
class CTestComponent
: public sdv::CSdvObject
, public ISayHello
, public ISayGoodbye
{
public:
CTestComponent()
{
std::cout << "Entering CTestComponent constructor..." << std::endl;
}
~CTestComponent() override
{
std::cout << "Entering CTestComponent destructor..." << std::endl;
}
BEGIN_SDV_INTERFACE_MAP()
SDV_INTERFACE_ENTRY(ISayHello)
SDV_INTERFACE_ENTRY(ISayGoodbye)
END_SDV_INTERFACE_MAP()
DECLARE_OBJECT_CLASS_TYPE(sdv::EObjectType::Device)
DECLARE_OBJECT_CLASS_NAME("Hello_Component")
/**
* @brief Show hello message, implements the function of ISayHello
*/
void SayHello() override
{
std::cout << "Hello from Hello_Component ..." << std::endl;
}
/**
* @brief Show hello message, implements the function of ISayGoodbye
*/
void SayGoodbye() override
{
std::cout << "Goodbye from Hello_Component ..." << std::endl;
}
};
DEFINE_SDV_OBJECT(CTestComponent)