*/
~Bruker2Dicom (){};
- void SetInputDirectory (const std::string &i) { InputDirName = i; }
- void SetOutputDirectory(const std::string &o) { OutputDirName = o; }
- void SetConvertModeToDicom() { dicom = 1; mhd = 0;}
- void SetConvertModeToMhd() { dicom = 0; mhd = 1;}
+ void SetInputDirectory (const std::string &i) { InputDirName = i;}
+ void SetOutputDirectory(const std::string &o) { OutputDirName = o;}
+ void SetConvertModeToDicom() { dicom = 1; mhd = 0;}
+ void SetConvertModeToMhd() { dicom = 0; mhd = 1;}
bool Execute();
/*
void cleanString(std::string &s);
-bool CreateDirectory(std::string dirNameout);
+bool CreateDirectory(std::string &dirNameout);
-void DealWithNiveau1(std::string level1Directory, std::string currentOutputDirName);
-void DealWithNiveau2(std::string level2Directory, std::string currentOutputDirName);
-void DealWithNiveau3(std::string level3Directory, std::string currentOutputDirName);
+int CheckUserDirectory(std::string &userDirName);
+void DealWithMultiStudyDirectory(GDCM_NAME_SPACE::DirListType &fileNames);
+void DealWithSingleStudyDirectory(GDCM_NAME_SPACE::DirListType &fileNames);
+void DealWithNiveau1(std::string &level1Directory, std::string ¤tOutputDirName);
+void DealWithNiveau2(std::string &level2Directory, std::string ¤tOutputDirName);
+void DealWithNiveau3(std::string &level3Directory, std::string ¤tOutputDirName);
void dealWithCarto(GDCM_NAME_SPACE::DirListType &fileNames, int NX, int NY, int nbSlices,
double fovX, double fovY, double sliceDistance,
char *copyFile, std::string ¤tOutputDirName,
char *outputMhdFileName, char *output2dseqCartoName);
-
public:
// these ones are for debugging only
private :
std::string InputDirName;
std::string OutputDirName;
+
+ bool subjectFound;
+ bool acqpFound;
+
+ std::string subject_entry;
+ std::string subject_position;
+ std::string subject_date;
+ std::string subject_study_name;
int mhd;
int dicom;
std::string strSerieDescr;
std::string strStudyTimeDate;
std::string strPatientName;
-
+ std::string subject_name; // cleaned strPatientName
+
int serieNumber;
int instanceNumber;
};
-
#endif