mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-05-08 16:12:15 +02:00
81 lines
2.0 KiB
C++
81 lines
2.0 KiB
C++
#ifndef _GPATRTGENINFO_H_
|
|
#define _GPATRTGENINFO_H_
|
|
|
|
#include <vector>
|
|
#include <qstring.h>
|
|
|
|
#ifndef MAXSTRINGLENGHT
|
|
#define MAXSTRINGLENGHT 255
|
|
#endif
|
|
|
|
class gPatientRTGeneralInfos {
|
|
|
|
public:
|
|
gPatientRTGeneralInfos(){
|
|
PatientName = new char [MAXSTRINGLENGHT];
|
|
PatientID = new char [MAXSTRINGLENGHT];
|
|
PatientSex = new char [MAXSTRINGLENGHT];
|
|
PatientAge = new char [MAXSTRINGLENGHT];
|
|
PatientBirthDate = new char [MAXSTRINGLENGHT];
|
|
|
|
SeriesNumber = new char [MAXSTRINGLENGHT];
|
|
SeriesDescription = new char [MAXSTRINGLENGHT];
|
|
StudyID = new char [MAXSTRINGLENGHT];
|
|
StudyDescription = new char [MAXSTRINGLENGHT];
|
|
|
|
PatientOrientation= new char [MAXSTRINGLENGHT];
|
|
|
|
clearInfo();
|
|
};
|
|
|
|
void clearInfo(){
|
|
filenames.clear();
|
|
CTfiles.clear();
|
|
rtIonPlanPath.clear();
|
|
rtStructurePath.clear();
|
|
PatientName[0]=0;
|
|
PatientID[0]=0;
|
|
PatientSex[0]=0;
|
|
PatientBirthDate[0]=0;
|
|
SeriesNumber[0]=0;
|
|
SeriesDescription[0]=0;
|
|
StudyID[0]=0;
|
|
StudyDescription[0]=0;
|
|
PatientOrientation[0]=0;
|
|
};
|
|
|
|
~gPatientRTGeneralInfos(){
|
|
delete [] PatientName;
|
|
delete [] PatientID;
|
|
delete [] PatientSex;
|
|
delete [] PatientAge;
|
|
delete [] PatientBirthDate;
|
|
delete [] SeriesNumber;
|
|
delete [] SeriesDescription;
|
|
delete [] StudyID;
|
|
delete [] StudyDescription;
|
|
delete [] PatientOrientation;
|
|
};
|
|
|
|
public:
|
|
char* PatientName;
|
|
char* PatientID;
|
|
char* PatientSex;
|
|
char* PatientAge;
|
|
char* PatientBirthDate;
|
|
char* SeriesNumber;
|
|
char* SeriesDescription;
|
|
char* StudyID;
|
|
char* StudyDescription;
|
|
char* PatientOrientation;
|
|
|
|
std::vector<std::string> filenames;
|
|
QString rtIonPlanPath;
|
|
QString rtStructurePath;
|
|
std::vector<std::string> CTfiles;
|
|
|
|
};
|
|
|
|
|
|
#endif
|