Ejemplo n.º 1
0
extern "C" AOS_BLOG_API int aos_register(
  AOSInputExecutor& inputExecutor, 
  AOSModuleExecutor& moduleExecutor, 
  AOSOutputExecutor& outputExecutor, 
  AOSServices& services
)
{
  services.useLog().add(ASWNL("AOS_Blog: aos_register"), ALog::EVENT_INFO);

  //Register modules
  moduleExecutor.registerModule(new AOSModule_BlogView(services));
  
  return 0;
}
Ejemplo n.º 2
0
extern "C" AOS_EXAMPLE_API int aos_register(
    AOSInputExecutor& inputExecutor,
    AOSModuleExecutor& moduleExecutor,
    AOSOutputExecutor& outputExecutor,
    AOSServices& services
)
{
    services.useLog().add(ASWNL("AOS_Example: aos_register"), ALog::EVENT_INFO);

    //Register modules
    moduleExecutor.registerModule(new AOSModule_rss20(services));

    //Register output generators
    outputExecutor.registerOutputGenerator(new AOSOutput_generate_image(services));

    return 0;
}
Ejemplo n.º 3
0
extern "C" AOS_DADADATA_API int aos_register(
  AOSInputExecutor& inputExecutor, 
  AOSModuleExecutor& moduleExecutor, 
  AOSOutputExecutor& outputExecutor, 
  AOSServices& services
)
{
  services.useLog().add(ASWNL("AOS_DadaData: aos_register"), ALog::EVENT_INFO);

  //a_Register template properties module
  moduleExecutor.registerModule(new AOSModule_DadaTemplateProperties(services));

  //Register the DADA template handler
  services.addTemplateHandler(new ATemplateNodeHandler_DADA(services));

  return 0;
}
Ejemplo n.º 4
0
extern "C" AOS_BASEMODULES_API int aos_register(
  AOSInputExecutor& inputExecutor, 
  AOSModuleExecutor& moduleExecutor, 
  AOSOutputExecutor& outputExecutor, 
  AOSServices& services
)
{
  services.useLog().add(ASWNL("AOS_BaseModules: aos_register"), ALog::EVENT_INFO);

  //Register input processors
  inputExecutor.registerInputProcessor(new AOSInput_HtmlForm(services));
  inputExecutor.registerInputProcessor(new AOSInput_NOP(services));
  inputExecutor.registerInputProcessor(new AOSInput_HtmlFormMultiPart(services));

  //Register modules
  moduleExecutor.registerModule(new AOSModule_NOP(services));
  moduleExecutor.registerModule(new AOSModule_ExecuteQuery(services));
  moduleExecutor.registerModule(new AOSModule_AlterContext(services));
  moduleExecutor.registerModule(new AOSModule_SetSessionLocale(services));
  moduleExecutor.registerModule(new AOSModule_InsertIntoModel(services));
  moduleExecutor.registerModule(new AOSModule_Template(services));
  moduleExecutor.registerModule(new AOSModule_LuaScript(services));
  moduleExecutor.registerModule(new AOSModule_FileList(services));
  moduleExecutor.registerModule(new AOSModule_SaveToFile(services));
  moduleExecutor.registerModule(new AOSModule_AddStatistics(services));
  
  //Register output generators
  outputExecutor.registerOutputGenerator(new AOSOutput_NOP(services));
  outputExecutor.registerOutputGenerator(new AOSOutput_XML(services));
  outputExecutor.registerOutputGenerator(new AOSOutput_JSON(services));
  outputExecutor.registerOutputGenerator(new AOSOutput_Template(services));
  outputExecutor.registerOutputGenerator(new AOSOutput_File(services));
  outputExecutor.registerOutputGenerator(new AOSOutput_Redirect(services));

  //a_XSLT is OS specific, on Windows we use MSXML6 which so far is the fastest one around
#ifdef __WINDOWS__
  outputExecutor.registerOutputGenerator(new AOSOutput_MsXslt(services));
#endif

  return 0;
}