#pragma once

#if defined(__vxworks)
    
     
  #include "stdafx.h"
    #include "Factory.h"
  extern "C" ISettingsFactory* createSettingsFactory(PATH library_path,PATH modelicasystem_path)
  {
     return new SettingsFactory(library_path,library_path,modelicasystem_path);
  }

#elif defined(SIMSTER_BUILD)

#include "stdafx.h"
#include "Factory.h"


/*Simster factory */
extern "C" void BOOST_EXTENSION_EXPORT_DECL extension_export_simulation_settings(boost::extensions::factory_map & fm)
{
    
    fm.get<ISettingsFactory,int,PATH,PATH,PATH>()[1].set<SettingsFactory>();
}

#elif defined(OMC_BUILD)

#include "stdafx.h"
#include "Factory.h"

/*OMC facory*/
using boost::extensions::factory;
BOOST_EXTENSION_TYPE_MAP_FUNCTION {

    types.get<std::map<std::string, factory<ISettingsFactory,PATH,PATH,PATH> > >()
    ["SettingsFactory"].set<SettingsFactory>();
}
#else
    error "operating system not supported"
#endif

