mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-04-28 05:58:17 +00:00
21
examples/_howto_examples/source/example_interfaces.h
Normal file
21
examples/_howto_examples/source/example_interfaces.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <interfaces/core.h>
|
||||
#include <support/signal_support.h>
|
||||
|
||||
interface ISayHello ///< interface example ISayHello
|
||||
{
|
||||
virtual void SayHello() = 0; ///< function og the interface
|
||||
static constexpr ::sdv::interface_id _id = 0xA012345678900100; ///< Interface Id
|
||||
};
|
||||
|
||||
interface ISayGoodbye ///< interface example ISayGoodbye
|
||||
{
|
||||
virtual void SayGoodbye() = 0; ///< function og the interface
|
||||
static constexpr ::sdv::interface_id _id = 0xA012345678900200; ///< Interface Id
|
||||
};
|
||||
|
||||
interface IShowExample ///< interface example IShowExample
|
||||
{
|
||||
virtual void Show() = 0; ///< function og the interface
|
||||
static constexpr ::sdv::interface_id _id = 0xA012345678900300; ///< Interface Id
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user