filepath, filename and index set from slsdet or multislsdet, moving all receiver coding from slsdetectorcommand to slsdetector

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@312 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-10-24 11:59:04 +00:00
parent 9b323c9e7e
commit b52f9a8569
12 changed files with 596 additions and 594 deletions

View File

@ -100,12 +100,9 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
int progressIndex;
/** total number of frames to be acquired */
int totalProgress;
/** current index of the output file */
int fileIndex;
/** path of the output files */
/** path of the output files */
char filePath[MAX_STR_LENGTH];
/** name root of the output files */
char fileName[MAX_STR_LENGTH];
/* size of the detector */
@ -1392,26 +1389,42 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
*/
int setReceiverTCPSocket(string const name="", int const data_port=-1);
/**
Sets up the receiver file name
@param fileName file name
\returns file name
*/
string setReceiverFileName(string fileName="");
/**
Sets up the receiver file directory
@param fileName fileDir file directory
Sets up the file directory
@param s fileDir file directory
\returns file dir
*/
string setReceiverFileDir(string fileDir="");
string setFilePath(string s="");
/**
Sets up the receiver file index
@param fileIndex file index
Sets up the file name
@param s file name
\returns file name
*/
string setFileName(string s="");
/**
Sets up the file index
@param i file index
\returns file index
*/
int setReceiverFileIndex(int fileIndex=-1);
int setFileIndex(int i=-1);
/**
\returns file dir
*/
string getFilePath(){return setFilePath();};
/**
\returns file name
*/
string getFileName(){return setFileName();};
/**
\returns file index
*/
int getFileIndex(){return setFileIndex();};
/** Starts the listening mode of receiver
@ -1424,6 +1437,8 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
*/
int stopReceiver();
int DetectorStopReceiver();
/** gets the status of the listening mode of receiver
\returns status
*/