Skip to content

Commit

Permalink
-adapted VxWworks for SimVars
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25559 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
RuedKamp committed Apr 15, 2015
1 parent 4e2e897 commit 4823b9e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -459,21 +459,23 @@ case SIMCODE(modelInfo=MODELINFO()) then
#include "OMCpp<%fileNamePrefix%>Extension.h" */

#if defined(__TRICORE__) || defined(__vxworks)
#include <Core/System/FactoryExport.h>
#include <Core/DataExchange/SimData.h>
#include <Core/System/SimVars.h>
extern "C" IMixedSystem* createModelicaSystem(IGlobalSettings* globalSettings, boost::shared_ptr<IAlgLoopSolverFactory> algLoopSolverFactory, boost::shared_ptr<ISimData> simData, boost::shared_ptr<ISimVars> simVars)
{
return new <%lastIdentOfPath(modelInfo.name)%>Extension(globalSettings, algLoopSolverFactory, simData, simVars);
}

extern "C" IMixedSystem* createModelicaSystem(IGlobalSettings* globalSettings, boost::shared_ptr<IAlgLoopSolverFactory> algLoopSolverFactory, boost::shared_ptr<ISimData> simData)
{
return new <%lastIdentOfPath(modelInfo.name)%>Extension(globalSettings, algLoopSolverFactory, simData);
}

extern "C" ISimVars* createSimVars(size_t dim_real, size_t dim_int, size_t dim_bool, size_t dim_pre_vars, size_t dim_z, size_t z_i)
{
return new SimVars(dim_real, dim_int, dim_bool, dim_pre_vars, dim_z, z_i);
}
extern "C" ISimVars* createSimVars(size_t dim_real, size_t dim_int, size_t dim_bool, size_t dim_pre_vars, size_t dim_z, size_t z_i)
{
return new SimVars(dim_real, dim_int, dim_bool, dim_pre_vars, dim_z, z_i);
}

extern "C" ISimData* createSimData()
{
return new SimData();
}
extern "C" ISimData* createSimData()
{
return new SimData();
}

#elif defined (RUNTIME_STATIC_LINKING)

Expand Down

0 comments on commit 4823b9e

Please sign in to comment.