- BrukerFieldData b_study_name=br_subject.GetFieldData("SUBJECT_study_name");
- std::string subject_study_name = b_study_name.GetStringValue()[0];
- subject_study_name = subject_study_name.substr(1, subject_study_name.size()-2);
- cleanString(subject_study_name);
-
+ BrukerFieldData b_study_name=br_subject.GetFieldData("SUBJECT_study_name");
+ subject_study_name = b_study_name.GetStringValue()[0];
+ subject_study_name = subject_study_name.substr(1, subject_study_name.size()-2);
+ cleanString(subject_study_name);
+ }
+ else // Desperate trick when file 'subject' is missing
+ {
+ subject_entry = "HeadFirst"; // Why not?
+ subject_position = "Supine"; // Why not?
+ strStudyTimeDate = "06_06_06_6_June_1666"; // Why not?
+ subject_date = "6_June_1666"; // Why not?
+ subject_study_name = "defStudyName"; // Why not?
+ }