mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
file name with frame index and detector index
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@304 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -23,7 +23,7 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/** default constructor */
|
/** default constructor */
|
||||||
fileIO(): fileIOStatic() {};
|
fileIO(): fileIOStatic() {frameIndex=-1;detIndex=-1;};
|
||||||
/** virtual destructor */
|
/** virtual destructor */
|
||||||
virtual ~fileIO(){};
|
virtual ~fileIO(){};
|
||||||
|
|
||||||
@ -33,6 +33,7 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
|
|||||||
|
|
||||||
int getFileIndexFromFileName(string fname){return fileIOStatic::getFileIndexFromFileName(fname);};
|
int getFileIndexFromFileName(string fname){return fileIOStatic::getFileIndexFromFileName(fname);};
|
||||||
int getVariablesFromFileName(string fname, int &index, int &p_index, double &sv0, double &sv1){return fileIOStatic::getVariablesFromFileName(fname, index, p_index, sv0, sv1);};
|
int getVariablesFromFileName(string fname, int &index, int &p_index, double &sv0, double &sv1){return fileIOStatic::getVariablesFromFileName(fname, index, p_index, sv0, sv1);};
|
||||||
|
int getVariablesFromFileName(string fname, int &index, int &f_index, int &p_index, double &sv0, double &sv1, int &detindex){return fileIOStatic::getVariablesFromFileName(fname, f_index, index, p_index, sv0, sv1, detindex);};
|
||||||
/**
|
/**
|
||||||
sets the default output files path
|
sets the default output files path
|
||||||
\param s file path
|
\param s file path
|
||||||
@ -54,7 +55,19 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
|
|||||||
*/
|
*/
|
||||||
int setFileIndex(int i) {*fileIndex=i; return *fileIndex;};
|
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
|
||||||
|
*/
|
||||||
|
int setFrameIndex(int i) {frameIndex=i; return frameIndex;};
|
||||||
|
|
||||||
|
/**
|
||||||
|
sets the default output file index
|
||||||
|
\param i detector index to be set
|
||||||
|
\returns actual detector index
|
||||||
|
*/
|
||||||
|
int setDetectorIndex(int i) {detIndex=i; return detIndex;};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\returns the output files path
|
\returns the output files path
|
||||||
@ -72,10 +85,20 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
|
|||||||
*/
|
*/
|
||||||
int getFileIndex() {return *fileIndex;};
|
int getFileIndex() {return *fileIndex;};
|
||||||
|
|
||||||
|
/**
|
||||||
|
\returns the output frame index
|
||||||
|
*/
|
||||||
|
int getFrameIndex() {return frameIndex;};
|
||||||
|
|
||||||
|
/**
|
||||||
|
\returns the detector index
|
||||||
|
*/
|
||||||
|
int getDetectorIndex() {return detIndex;};
|
||||||
|
|
||||||
|
|
||||||
string createFileName();
|
string createFileName();
|
||||||
|
|
||||||
|
string createReceiverFilePrefix();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -210,10 +233,18 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
|
|||||||
|
|
||||||
void incrementFileIndex() { (*fileIndex)++; };
|
void incrementFileIndex() { (*fileIndex)++; };
|
||||||
|
|
||||||
|
void incrementFrameIndex() { (frameIndex)++; };
|
||||||
|
|
||||||
|
void incrementDetectorIndex() { (detIndex)++; };
|
||||||
|
|
||||||
string getCurrentFileName(){return currentFileName;};
|
string getCurrentFileName(){return currentFileName;};
|
||||||
|
|
||||||
|
string getCurrentReceiverFilePrefix(){return currentReceiverFilePrefix;};
|
||||||
|
|
||||||
string currentFileName;
|
string currentFileName;
|
||||||
|
|
||||||
|
string currentReceiverFilePrefix;
|
||||||
|
|
||||||
|
|
||||||
/** output directory */
|
/** output directory */
|
||||||
char *filePath;
|
char *filePath;
|
||||||
@ -221,7 +252,10 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
|
|||||||
char *fileName;
|
char *fileName;
|
||||||
/** file index */
|
/** file index */
|
||||||
int *fileIndex;
|
int *fileIndex;
|
||||||
|
/** frame index */
|
||||||
|
int frameIndex;
|
||||||
|
/** detector id */
|
||||||
|
int detIndex;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user