14 #ifndef GDCMMEDIASTORAGE_H
15 #define GDCMMEDIASTORAGE_H
19 namespace gdcm {
class Tag; }
22 #if !defined(SWIGPYTHON) && !defined(SWIGCSHARP) && !defined(SWIGJAVA) && !defined(SWIGPHP)
47 MediaStorageDirectoryStorage = 0,
148 static const char* GetMSString(MSType ts);
151 const char* GetString()
const;
152 static MSType GetMSType(
const char *str);
158 static bool IsImage(MSType ts);
160 operator MSType ()
const {
return MSField; }
162 const char *GetModality()
const;
163 unsigned int GetModalityDimension()
const;
165 static unsigned int GetNumberOfMSType();
166 static unsigned int GetNumberOfMSString();
167 static unsigned int GetNumberOfModality();
174 bool SetFromFile(
File const &file);
178 bool SetFromDataSet(
DataSet const &ds);
180 bool SetFromModality(
DataSet const &ds);
181 void GuessFromModality(
const char *modality,
unsigned int dimension = 2);
188 void SetFromSourceImageSequence(
DataSet const &ds);
191 bool SetFromDataSetOrHeader(
DataSet const &ds,
const Tag & tag);
193 const char* GetFromDataSetOrHeader(
DataSet const &ds,
const Tag & tag);
197 const char* GetFromDataSet(
DataSet const &ds);
205 const char *msstring = MediaStorage::GetMSString(ms);
206 _os << (msstring ? msstring :
"INVALID MEDIA STORAGE");
213 #endif // GDCMMEDIASTORAGE_H
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
a DICOM File See PS 3.10 File: A File is an ordered string of zero or more bytes, where the first byt...
Definition: gdcmFile.h:33
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
Definition: gdcmASN1.h:20
std::ostream & operator<<(std::ostream &_os, const MediaStorage &ms)
Definition: gdcmMediaStorage.h:203