Implementing Polymorphic Callbacks for Ada/C++ Bindings Maciej - - PowerPoint PPT Presentation

implementing polymorphic callbacks for ada c bindings
SMART_READER_LITE
LIVE PREVIEW

Implementing Polymorphic Callbacks for Ada/C++ Bindings Maciej - - PowerPoint PPT Presentation

Implementing Polymorphic Callbacks for Ada/C++ Bindings Maciej Sobczak YAMI4 Multilanguage Asynchronous Messaging Library User Programs Ada General-Purpose C++ General-Purpose Ada Core C++ Core Operating System But this is a common


slide-1
SLIDE 1

Implementing Polymorphic Callbacks for Ada/C++ Bindings

Maciej Sobczak

slide-2
SLIDE 2

YAMI4 – Multilanguage Asynchronous Messaging Library

Operating System C++ Core Ada General-Purpose Ada Core C++ General-Purpose User Programs

slide-3
SLIDE 3

But this is a common problem!

WWW request handlers DB stored procedures Alarms GUI events

slide-4
SLIDE 4

One-page problem

slide-5
SLIDE 5

Callbacks anatomy

Object-Oriented Callback Object Action

slide-6
SLIDE 6

Solution

C wrapper Ada translation layer C++ notifications Ada user code

slide-7
SLIDE 7

Problem

C wrapper Ada translation layer C++ notifications Ada user code Object-Oriented Callback Object Action

Object pointer is created in Ada and used in Ada

slide-8
SLIDE 8

Problem

C wrapper Ada translation layer C++ notifications Ada user code Object-Oriented Callback Object Action

Procedure pointer is created in Ada but used in C++

slide-9
SLIDE 9

Dependencies

Ada C++

slide-10
SLIDE 10