ADTF  3.18.2
legacy_filter.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

class  cLegacyInputPin
 This class helps when porting ADTF 2 Filters to ADTF 3. More...
 
class  cLegacyOutputPin
 This class helps when porting ADTF 2 Filters to ADTF 3. More...
 
class  cKernelAndClockHelper
 Common base class for all legacy filter classes. More...
 
class  cConfigurationHelper< Child >
 Common base class for all legacy filter classes that emulates the old configuration interface. More...
 
class  cLegacyPinEvents
 Common base class for all legacy filter classes that emulates the old IPinEventHandler interface. More...
 
class  cLegacyStateHandler
 Common base class for all legacy filter classes that emulates the old state maschine of cFilter. More...
 
class  cLegacyFilter
 Class that helps with porting old ADTF 2 Filters to ADTF 3. More...
 
class  legacy_filter< TriggerFunctionImpl >
 Internal class that is the glue between the cLegacyFilter and ADTF 3. More...
 

Namespaces

 adtf
 Namespace for entire ADTF SDK.
 
 adtf::adtf2
 Namespace providing ADTF 2 legacy functionality of the ADTF 2 Support SDK.
 
 adtf::adtf2::ant
 Namespace for functionality of the ADTF 2 Support SDK provided with v3.0.
 

Macros

#define __sample_read_lock(__sample, __type, __variable)
 Compatibility macro to gain read access to a sample. More...
 
#define __sample_write_lock(__sample, __type, __variable)
 Compatibility macro to gain write access to a sample. More...
 
#define ADTF_LEGACY_FILTER_NAME(_class_identifier_, _class_name_, _legacyfilterclass_, _triggerfunction_)
 Macro to define a legacy filter class. More...
 
#define ADTF_LEGACY_FILTER_PLUGIN(_class_identifier_, _class_name_, _triggerfunction_)
 Macro to define an ADTF 3 Plugin that provides a legacy Filter. More...
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file legacy_filter.h.

Macro Definition Documentation

◆ __sample_read_lock

#define __sample_read_lock (   __sample,
  __type,
  __variable 
)
Value:
RETURN_IF_FAILED(__sample->Lock(__variable##Buffer)); \
const __type* __variable = reinterpret_cast<const __type*>(__variable##Buffer->GetPtr());
Implementation for a shared lock guard.

Compatibility macro to gain read access to a sample.

Definition at line 546 of file legacy_filter.h.

◆ __sample_write_lock

#define __sample_write_lock (   __sample,
  __type,
  __variable 
)
Value:
RETURN_IF_FAILED(__sample->WriteLock(__variable##Buffer, sizeof(__type))); \
__type* __variable = reinterpret_cast<__type*>(__variable##Buffer->GetPtr());
Implementation for a exclusive lock guard.

Compatibility macro to gain write access to a sample.

Definition at line 552 of file legacy_filter.h.

◆ ADTF_LEGACY_FILTER_NAME

#define ADTF_LEGACY_FILTER_NAME (   _class_identifier_,
  _class_name_,
  _legacyfilterclass_,
  _triggerfunction_ 
)
Value:
class _legacyfilterclass_ : public adtf::adtf2::ant::legacy_filter<_triggerfunction_> \
{ \
public:\
ADTF_CLASS_ID_NAME(_legacyfilterclass_, _class_identifier_, _class_name_); \
public: \
_legacyfilterclass_() = default; \
virtual ~_legacyfilterclass_() = default; \
};
Internal class that is the glue between the cLegacyFilter and ADTF 3.

Macro to define a legacy filter class.

Definition at line 558 of file legacy_filter.h.

◆ ADTF_LEGACY_FILTER_PLUGIN

#define ADTF_LEGACY_FILTER_PLUGIN (   _class_identifier_,
  _class_name_,
  _triggerfunction_ 
)
Value:
ADTF_LEGACY_FILTER_NAME(_class_identifier_,\
_class_name_,\
_triggerfunction_##filter,\
_triggerfunction_)\
ADTF_PLUGIN(_class_name_ " Plugin", \
_triggerfunction_##filter);
#define ADTF_LEGACY_FILTER_NAME(_class_identifier_, _class_name_, _legacyfilterclass_, _triggerfunction_)
Macro to define a legacy filter class.

Macro to define an ADTF 3 Plugin that provides a legacy Filter.

Definition at line 572 of file legacy_filter.h.