EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoHeader Class Reference

Helper Class for the Serializations, sets the Archive Header. More...

#include <eoHeader.h>

Inheritance diagram for eoHeader:
Collaboration diagram for eoHeader:

Public Member Functions

 eoHeader (uint8_t majorVersion, uint8_t minorVersion, const char *handlerName)
 
virtual uint8_t Serialize (eoArchive &arch)
 Serialization Function which will be called by the eoStorageManager. More...
 

Public Attributes

uint8_t major
 Major version of the Archive.
 
uint8_t minor
 Minor Version of the Archive.
 
char name [32]
 String name of the Archive.
 

Detailed Description

Helper Class for the Serializations, sets the Archive Header.

Constructor & Destructor Documentation

◆ eoHeader()

eoHeader::eoHeader ( uint8_t  majorVersion,
uint8_t  minorVersion,
const char *  handlerName 
)

Create an eoHeadr for serialisation with specific versions.

Parameters
majorVersionMajor version of the archive.
minorVersionMinor version of the archive.
handlerNameName of the archive.

Member Function Documentation

◆ Serialize()

virtual uint8_t eoHeader::Serialize ( eoArchive arch)
virtual

Serialization Function which will be called by the eoStorageManager.

This function will be called by the eoArchive(inside of the eoStorageManager) and allows the class to be Serialized.

Parameters
archarchive where to Load or to Store.

Implements eoISerialize.