ExtensionManager.h Source File#
ExtensionManager.h
Go to the documentation of this file.
Base class for managing user-defined Cantera extensions written in other languages.
Definition ExtensionManager.h:36
static void registerSolutionLinker(const string &wrapperName, function< shared_ptr< ExternalHandle >(shared_ptr< Solution >)> link)
Register a function that can be used to create wrappers for Solution objects in an external language ...
Definition ExtensionManager.cpp:47
static void wrapReactionData(const string &rateName, ReactionDataDelegator &data)
Create an object in an external language that wraps the specified ReactionData object.
Definition ExtensionManager.cpp:16
static map< string, string > s_userTypeToWrapperType
Mapping from user-defined rate types to Solution wrapper types.
Definition ExtensionManager.h:117
virtual void registerRateBuilders(const string &extensionName)
Register ReactionRate defined in a user extension with ReactionRateFactory.
Definition ExtensionManager.h:42
virtual void registerRateDataBuilder(const string &extensionName, const string &className, const string &rateName)
Register a user-defined ReactionData implementation.
Definition ExtensionManager.h:65
virtual void registerRateBuilder(const string &extensionName, const string &className, const string &rateName)
Register a user-defined ReactionRate implementation with ReactionRateFactory.
Definition ExtensionManager.h:53
static string getSolutionWrapperType(const string &userType)
Get the Solution wrapper type corresponding to the specified user-defined reaction rate type.
Definition ExtensionManager.cpp:53
static void registerReactionDataLinker(const string &rateName, const string &wrapperName, function< void(ReactionDataDelegator &)> link)
Register a function that can be used to create wrappers for ReactionData objects in an external langu...
Definition ExtensionManager.cpp:28
static map< string, function< shared_ptr< ExternalHandle >(shared_ptr< Solution >)> > s_Solution_linkers
Functions for wrapping and linking Solution objects.
Definition ExtensionManager.h:114
static shared_ptr< ExternalHandle > wrapSolution(const string &wrapperType, shared_ptr< Solution > soln)
Create an object in an external language that wraps the specified Solution object.
Definition ExtensionManager.cpp:35
static map< string, function< void(ReactionDataDelegator &)> > s_ReactionData_linkers
Functions for wrapping and linking ReactionData objects.
Definition ExtensionManager.h:110
A base class for managing the lifetime of an external object, such as a Python object used by a Deleg...
Definition ExtensionManager.h:20
An error indicating that an unimplemented function has been called.
Definition ctexceptions.h:195
Delegate methods of the ReactionData class to external functions.
Definition ReactionRateDelegator.h:20
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Generated by 1.9.7