All Downloads are FREE. Search and download functionalities are using the official Maven repository.

st.membrane.CloneableController.stc Maven / Gradle / Ivy

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