An adaptor for C++ callbacks with C and Fortran libraries

Abstract

This program has been imported from the CPC Program Library held at Queen's University Belfast (1969-2018) Abstract Object-oriented programming using C++ is increasingly being adopted in the development of scientific codes. A recurrent issue in this regard is the interaction of newly developed codes with existing legacy libraries written in C or Fortran. Often, one needs to pass raw function pointers to such libraries’ procedures for callback purposes. This is problematic as it conflicts with one of the cornerstones of object-oriented programming: the association of functions and data through objects. Curr... Title of program: Adapt2rfp Catalogue Id: AENU_v1_0 Nature of problem Object-oriented programming using C++ is increasingly being adopted in the development of scientific codes. A recurrent issue in this regard, is the interaction of newly developed codes with existing legacy libraries written in C or Fortran. Often, one needs to pass raw function pointers to such libraries' procedures for callback purposes. This is problematic as it conflicts with one of the cornerstones of object-oriented programming, the association of functions and data through objects. Curren ... Versions of this program held in the CPC repository in Mendeley Data AENU_v1_0; Adapt2rfp; 10.1016/j.cpc.2012.10.01

    Similar works

    Full text

    thumbnail-image