
st.membrane.CloneableController.stc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations Show documentation
Show all versions of annotations Show documentation
Common ADL and IDL annotations of the Mind programming model.
The newest version!
template st.membrane.CloneableController
: st.common.ComponentHelper
implements st.membrane.ControllerGenerator {
st.interfaces.IDLDefinition idl2c = st.interfaces.IDL2C;
$${
isVoid ::= [ "void" : "true" ]
// -----------------------------------------------------------------------------
// Implementation of the ControllerGenerator interface
// -----------------------------------------------------------------------------
ControllerImplementation(definition, controller, interfaceDefinitions) ::= <<
/* -----------------------------------------------------------------------------
Implementation of the Factory interface
----------------------------------------------------------------------------- */
>>
// -----------------------------------------------------------------------------
// Internal templates
// -----------------------------------------------------------------------------
newFcInstance(definition) ::= <<
int METH(factory, newFcInstance)(void ** instance) {
return __component__factory(instance, GET_MY_INTERFACE(allocator));
}
>>
destroyFcInstance(definition) ::= <<
int METH(factory, destroyFcInstance)(void * instance) {
return __component__destroy(instance, GET_MY_INTERFACE(allocator));
}
>>
}$$
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy