X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fsrc1%2Fbruker2dicom.h;h=6d6b9d4da889dc5f05a6db5a87550352c57ad1d6;hb=cc4fb89e6ab8668e7e8830a2e65dc53dc1773de5;hp=0199ec02cc804e9c4515f70b49d5b9c0ad79c3f8;hpb=fb90261cac445da2301d351d17ab66dd24eb8fec;p=creaBruker.git diff --git a/lib/src1/bruker2dicom.h b/lib/src1/bruker2dicom.h index 0199ec0..6d6b9d4 100644 --- a/lib/src1/bruker2dicom.h +++ b/lib/src1/bruker2dicom.h @@ -30,10 +30,10 @@ public: */ ~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(); /* @@ -73,17 +73,19 @@ void getImhDataType(BrukerFieldData &bDPT, 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 @@ -95,6 +97,14 @@ public: 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; @@ -117,10 +127,10 @@ private : std::string strSerieDescr; std::string strStudyTimeDate; std::string strPatientName; - + std::string subject_name; // cleaned strPatientName + int serieNumber; int instanceNumber; }; - #endif