CPPtrseq.gms : Test object oriented C++ API running a sequence of examples based on a transport model

Description

Contributor: Lutz Westermann, January 2013


Small Model of Type : C and CPP


Category : GAMS API library


Main file : CPPtrseq.gms

$TITLE 'Test object oriented C++ API running a sequence of examples based on a transport model' (CPPTRSEQ,SEQ=22)

$ontext
Contributor: Lutz Westermann, January 2013
$offtext


$set srcRoot %gams.sysdir%apifiles%system.dirsep%CPPnet%system.dirsep%

$escape &
$if %system.filesys% == UNIX
$if %sysenv.MPATH% == %&sysenv.MPATH%& $abort.noerror Need Mono to run this on Unix

$                             set BUILD MSBuild.exe
$if %system.filesys% == UNIX $set BUILD $MPATH/xbuild

$                              set x64
$if %system.buildcode% == WEI $set x64 x64%system.dirsep%

$if %system.buildcode% == VS8
$if not set flags $set flags  -t:rebuild -p:Configuration=Release -p:Platform="Win32"
$if %system.buildcode% == WEI
$if not set flags $set flags  -t:rebuild -p:Configuration=Release -p:Platform="x64"
$if %system.buildcode% == LEG
$if not set flags $set flags  /t:rebuild /p:Configuration=Release
$if %system.buildcode% == DEG
$if not set flags $set flags  /t:rebuild /p:Configuration=Release /p:DefineConstants="__APPLE__"

$onechoV > cmexTrans
$call %BUILD% %flags% "%srcRoot%Transport%1%system.dirsep%Transport%1.vcxproj"
$if errorlevel 1 $abort 'Problem compiling Transport%1.cpp'
$call ="%srcRoot%Transport%1%system.dirsep%%x64%Release%system.dirsep%Transport%1.exe" "%gams.sysdir%."
$if errorlevel 1 $abort 'Problem executing Transport%1'
$offecho

* Make sure that correct GAMS system is found when checking the registry
$call findthisgams -q

$batinclude cmexTrans 1
$batinclude cmexTrans 2
$batinclude cmexTrans 3
$batinclude cmexTrans 4
$batinclude cmexTrans 5
$batinclude cmexTrans 6
$batinclude cmexTrans 7
$batinclude cmexTrans 8
* These two need more references, cannot assume that they are the same one all machines
*$batinclude cmexTrans 9
*$batinclude cmexTrans 10
$batinclude cmexTrans 11