included a current frame index whch is different than file frame index for gotthard, even when readout through blackfin, for mythen both will alwys be incrememnted by one; gotthard server all of them should be consistent for 32 bit

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@425 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-01-11 17:20:57 +00:00
parent 9cfdbdac67
commit 4cc8566311
18 changed files with 79 additions and 23 deletions

View File

@ -30,7 +30,7 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
/** default constructor */
fileIO(): fileIOStatic(){frameIndex=-1;detIndex=-1; framesPerFile=&nframes; nframes=1; };
fileIO(): fileIOStatic(){currentFrameIndex=-1;frameIndex=-1;detIndex=-1; framesPerFile=&nframes; nframes=1; };
/** virtual destructor */
virtual ~fileIO(){};
@ -65,12 +65,19 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
virtual int setFileIndex(int i) {*fileIndex=i; return *fileIndex;};
/**
sets the default output file index
\param i frame index to be set
\returns actual frame index
sets the default output file frame index
\param i file frame index to be set
\returns actual file frame index
*/
virtual int setFrameIndex(int i) {frameIndex=i; return frameIndex;};
/**
sets the default output current frame index
\param i current frame index to be set
\returns actual current frame index
*/
virtual int setCurrentFrameIndex(int i) {currentFrameIndex=i; return currentFrameIndex;};
/**
sets the default output file index
\param i frame index to be set
@ -101,15 +108,25 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
virtual int getFileIndex() {return *fileIndex;};
/**
\returns the output frame index
\returns the output file frame index
*/
virtual int getFrameIndex() {return frameIndex;};
/**
\returns the output current frame index
*/
virtual int getCurrentFrameIndex() {return currentFrameIndex;};
/**
\returns the detector index
*/
virtual int getDetectorIndex() {return detIndex;};
/**
\returns the max frames per file
*/
virtual int getFramesPerFile() {return *framesPerFile;};
string createFileName();
@ -259,7 +276,9 @@ yes */
void incrementFileIndex() { (*fileIndex)++; };
void incrementFrameIndex() { (frameIndex)++; };
void incrementFrameIndex(int i) { frameIndex=frameIndex+i; };
void incrementCurrentFrameIndex() { (currentFrameIndex)++; };
void incrementDetectorIndex() { (detIndex)++; };
@ -279,8 +298,10 @@ yes */
char *fileName;
/** file index */
int *fileIndex;
/** frame index */
/** file frame index */
int frameIndex;
/** current frame index */
int currentFrameIndex;
/** detector id */
int detIndex;
/** frames per file */