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

cpp_module.model_Module_cpp.ftl Maven / Gradle / Ivy

Go to download

Tool that generates code for RPC between the Kurento Media Server and remote libraries.

There is a newer version: 7.1.0
Show newest version
Module.cpp
/* Autogenerated with kurento-module-creator */

#include "FactoryRegistrar.hpp"

<#list module.remoteClasses as remoteClass>
#include <${remoteClass.name}ImplFactory.hpp>
#include <${remoteClass.name}.hpp>

<#list module.complexTypes as complexType>
#include <${complexType.name}.hpp>


extern "C" {

  const kurento::FactoryRegistrar *getFactoryRegistrar ();

}

const kurento::FactoryRegistrar *
getFactoryRegistrar ()
{
  static bool loaded = false;
  static std::map> factories;

  if (!loaded) {
<#list module.remoteClasses as remoteClass>
  <#if !(remoteClass.abstract)>
    factories["${remoteClass.name}"] = std::shared_ptr  (new ${module.code.implementation["cppNamespace"]}::${remoteClass.name}ImplFactory() );
  


<#list module.complexTypes as complexType>
  <#if complexType.typeFormat == "REGISTER">
    ${module.code.implementation["cppNamespace"]}::${complexType.name}::registerType ();
  

    loaded = true;
  }

  static kurento::FactoryRegistrar factory (factories);
  return &factory;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy