/usr/include/odinpara/study.h is in libodin-dev 1.8.4-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | /***************************************************************************
study.h - description
-------------------
begin : Mon Mar 3 2003
copyright : (C) 2001 by Thies H. Jochimsen
email : jochimse@cns.mpg.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef STUDY_H
#define STUDY_H
#include <odinpara/jdxblock.h>
#include <odinpara/jdxtypes.h>
#include <odinpara/jdxnumbers.h>
#define ODIN_DATE_LENGTH 8
#define ODIN_DATE_FORMAT "%Y%m%d"
#define ODIN_TIME_LENGTH 6
#define ODIN_TIME_FORMAT "%H%M%S"
/**
* @ingroup odinpara
*
* \brief Study information
*
* This class is used to hold study information
*/
class Study : public JcampDxBlock {
public:
/**
* Constructs a Study object with the given label
*/
Study(const STD_string& label="unnamedStudy");
/**
* Constructs a copy of 'sp'
*/
Study(const Study& s);
/**
* Specifies the date/time of the scan:
* -date: date in DICOM format, i.e yyyymmdd
* -time: date in DICOM format, i.e hhmmss
*/
Study& set_DateTime(const STD_string& date, const STD_string& time);
/**
* Returns the date/time of the scan in the reference parameters, see set_DateTime() for their description
*/
void get_DateTime(STD_string& date, STD_string& time) const;
/**
* Set date/time of the scan to the current date/time
*/
void set_timestamp();
/**
* Specifies the patient information:
* -id: The unique ID of the patient
* -full_name: Patients full name
* -birth_date: Patients date of birth in DICOM format, i.e yyyymmdd
* -sex: Patients sex (M,F,O)
* -weight: Patients weight [kg]
*/
Study& set_Patient(const STD_string& id, const STD_string& full_name, const STD_string& birth_date, char sex, float weight);
/**
* Returns the patient information in the reference parameters, see set_Patient() for their description
*/
void get_Patient(STD_string& id, STD_string& full_name, STD_string& birth_date, char& sex, float& weight) const;
/**
* Specifies the study context:
* -description: Study description
* -scientist: Scientists name
*/
Study& set_Context(const STD_string& description, const STD_string& scientist);
/**
* Returns the study context in the reference parameters, see set_Context() for their description
*/
void get_Context(STD_string& description, STD_string& scientist) const;
/**
* Specifies the series context:
* -description: Series description
* -number: Series number
*/
Study& set_Series(const STD_string& description, int number);
/**
* Returns the series context in the reference parameters, see set_Series() for their description
*/
void get_Series(STD_string& description, int& number) const;
/**
* Assignment operator
*/
Study& operator = (const Study& s);
private:
void append_all_members();
static void format_date(STD_string& result, const STD_string& date);
static void format_time(STD_string& result, const STD_string& time);
JDXstring ScanDate;
JDXstring ScanTime;
JDXstring PatientId;
JDXstring PatientName;
JDXstring PatientBirthDate;
JDXenum PatientSex;
JDXfloat PatientWeight;
JDXstring Description;
JDXstring ScientistName;
JDXstring SeriesDescription;
JDXint SeriesNumber;
};
#endif
|