@echo off
REM This is the batchfile-variant of generating java-ByteDataAccess from some headers.

REM set the environment variable to find batch-, zbnf- and xsl-scripts
::set TMP_ZBNFJAX=..\..\..\tmpByteDataAccess
set TMP_ZBNFJAX=tmp
call setZBNFJAX_HOME.bat

REM create output dirs:
mkdir srcJava_gen
mkdir srcJava_gen\org
mkdir srcJava_gen\org\vishia
mkdir srcJava_gen\org\vishia\byteData
mkdir srcJava_gen\org\vishia\byteData\test

echo convert Mystruct.h
REM %1 is headerfile resp. javafile-name, 
REM %2 is output dir for %1.java, 
REM %3 is input dir for %1.h, 
REM %4 is the package declaration.
REM In the batch 3 routines are calling: ZBNF, XsltPre and the Saxon-xslt-translator.
call %ZBNFJAX_HOME%\batch\CHeader2JavaByteCoding.bat Mystruct srcJava_gen\org\vishia\byteData\test\ .\ org.vishia.byteData.test

pause
