gdcmFileDerivation.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __gdcmFileDerivation_h
00016 #define __gdcmFileDerivation_h
00017
00018 #include "gdcmFile.h"
00019
00020 namespace gdcm
00021 {
00022
00023 class FileDerivationInternals;
00024 class DataSet;
00035 class GDCM_EXPORT FileDerivation
00036 {
00037 public:
00038 FileDerivation();
00039 ~FileDerivation();
00040
00041 bool AddReference(const char *referencedsopclassuid, const char *referencedsopinstanceuid);
00042
00043 void SetDerivationCodeSequenceCodeValue(unsigned int codevalue);
00044 void SetPurposeOfReferenceCodeSequenceCodeValue(unsigned int codevalue);
00045 void SetDerivationDescription( const char *dd );
00046
00048 bool Derive();
00049
00051 void SetFile(const File& f) { F = f; }
00052 File &GetFile() { return *F; }
00053 const File &GetFile() const { return *F; }
00054
00055 protected:
00056 bool AddDerivationDescription();
00057 bool AddSourceImageSequence();
00058 bool AddPurposeOfReferenceCodeSequence(DataSet &ds);
00059
00060 private:
00061 SmartPointer<File> F;
00062 FileDerivationInternals *Internals;
00063 };
00064
00072 }
00073
00074 #endif //__gdcmFileDerivation_h
00075