Overview

Provides C++ language bindings for the Component Interface. 1199 is the current C++ binding and should be used for all new C++ components. This allows you to author your component as a C++ class that receives events from the framework through a member function event(). C++ developers will find this approach much more natural, and much less work, than authoring a C component.

This binding provides automatic handling of object creation, initialisation, duplication and destruction, and propagation of other Module Events to the appropriate object, so that the component author sees events directed at the object instance, a C++ class.

Usage

As with all the bindings, you should create a new Process for this binding using the BRAHMS Manager, which will be based on the template.

Considerations

Since this interface, on paper, makes an additional function call for each event, in comparison with the native C interface, processes may potentially run more slowly than those authored in C. However, any optimizing compiler should eliminate this overhead; failing that, the overhead should be so small as to be immeasurable in any case.

This is a documentation page for the BRAHMS Modular Execution (Simulation) Framework. For details of licensing and distribution, please click here. To advise of an error or omission, please click here.