Commit 6b4dcbdc authored by no_author's avatar no_author
Browse files

This commit was manufactured by cvs2svn to create tag 'v6r23'.

git-svn-id: https://svn.ego-gw.it/svn/advsw/Fr/tags/v6r23@22360 47e613b6-93f3-4244-b775-e06b1756610f
parent f07fafdc
include $(CMTROOT)/src/Makefile.header
include $(CMTROOT)/src/constituents.make
File added
#!/bin/sh -f
echo "++++++++++++++++++++++++++++++++++++++++Plain C code"
makegcc
echo "+++++++++++++++++++++++++++++++++++++++++++Root part"
cd ../root
build
echo "+++++++++++++++++++++++++++++++++++++++++Matlab Part"
cd ../matlab
`./mymex`
echo "+++++++++++++++++++++++++++++++++++++++++Octave Part"
cd ../octave
jmMake -f Makefile.farm
echo "++++++++++++++++++++++++++++++++++++++++++++All done"
#!/bin/sh
UNAME=${UNAME:-`uname`}
MYCC="gcc -O -Wall"
#--------------- special convention on alpha and Linux
if [ $UNAME = "OSF1" ]
then MYUNAME="alpha"
fi
if [ $UNAME = "Linux" ]
then UNAME=`uname`-`uname -m`
fi
echo " -------> This is $UNAME <--- ROOTSYS is $ROOTSYS "
mkdir ../$UNAME
cd ../$UNAME
rm -f *.o
echo "----------------------------------Compile Fr code"
#CXXGENFL="-O -fPIC -fno-rtti -fno-exceptions -D_USE_ROOT -I$ROOTSYS/$UNAME/include"
CXXGENFL=`root-config --cflags`
gcc $CXXGENFL -I../src -I../src/zlib -c ../src/FrIO.c
gcc $CXXGENFL -I../src -I../src/zlib -c ../src/FrameL.c
gcc $CXXGENFL -I../src -I../src/zlib -c ../src/FrFilter.c
gcc $CXXGENFL -I../src -I../src/zlib -c ../src/zlib/*.c
#--------------------------------- now this is the root part---------------
echo "Run CINT"
cint -w1 -zlibFrame -nG__cpp_frameL.C -D__MAKECINT__ -DG__MAKECINT \
-c-1 -A -DG__REGEXP -DG__SHAREDLIB -DG__OSFDLL -D__cplusplus \
-I`root-config --incdir` ../src/FrameL.h
#echo "compile CINT output"
g++ -O -DG__REGEXP -DG__SHAREDLIB -DG__OSFDLL -D_USE_ROOT -I`root-config --incdir` -fno-rtti -fno-exceptions -I../src -c G__cpp_frameL.C
echo "ROOT Shared Library"
g++ -shared -Wl --enable-runtime-pseudo-reloc --export-all-symbols *.o -Wl --enable-auto-import `root-config --glibs` -g -o libFrameROOT.so
echo "cleanup"
rm -f#*.o
rm -f G__cpp_frameL.*
/*-----------------------------------------------------------*/
/* File: examplePut.c by B. Mours(LAPP) May 21, 2003*/
/* */
/* This program read and write vector without frames use */
/*-----------------------------------------------------------*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "FrameL.h"
int main() /*-------------------- main-----------*/
{FrFile* iFile, *oFile;
FrVect* vect;
double gtime, dt;
int iVect;
iFile = FrFileINew("../data/test.dat");
gtime = FrFileITStart(iFile);
dt = 1.4;
oFile = FrFileONew("testPutV.dat",0);
for(iVect = 0; iVect<10; iVect++)
{gtime += dt;
vect = FrFileIGetV(iFile, "Adc1", gtime, dt);
FrFileOPutV(oFile, vect);
FrVectFree(vect);
vect = FrFileIGetV(iFile, "Adc2", gtime, dt);
FrFileOPutV(oFile, vect);
FrVectFree(vect);}
FrFileOEnd(oFile);
return(0);
}
/*-----------------------------------------------------------*/
/* File: exampleDumpFile.c by B. Mours (LAPP) Dec 7, 00 */
/* */
/* This program produces of short summary for each frame */
/* present in a file. The file name is the program argument */
/* An optional second argument is the debug level */
/*-----------------------------------------------------------*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdarg.h>
#include "FrameL.h"
int main(int argc, char *argv[]) /*-------------- main ----*/
{FrFile *iFile;
FrameH *frame;
/*------------------------------------ file open---------*/
iFile = FrFileINew(argv[1]);
if(iFile == NULL)
{printf("Cannot open file %s\n",argv[1]);
return(0);}
frame = FrameRead(iFile);
// FrameDump(frame, stdout, 2);
return(0);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment