]> Creatis software - gdcm.git/blob - src/gdcmJPEGFragment.h
* src/gdcmDocument.cxx ftell() return properly stored in a long (i.e.
[gdcm.git] / src / gdcmJPEGFragment.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmJPEGFragment.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/20 14:30:40 $
7   Version:   $Revision: 1.4 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19
20 #ifndef GDCMJPEGFRAGMENT_H
21 #define GDCMJPEGFRAGMENT_H
22
23 #include "gdcmCommon.h"
24 #include <iostream>
25
26 namespace gdcm 
27 {
28
29 /**
30  * \brief Utility class for summerizing the informations of a JPEG
31  *        fragment of an "Encapsulated JPEG Compressed Image".
32  *        This information is a mix of:
33  *        - the fragment offset
34  *        - the fragment length 
35  *
36  *        Each instance of this class (they can be as many instances for
37  *        a given Document as they are JPEG fragments and they are
38  *        collected in a \ref JPEGFragmentsInfo )
39  */
40 class GDCM_EXPORT JPEGFragment
41 {
42 friend class Document;
43 friend class File;
44 friend class PixelConvert;
45    long    Offset;
46    long    Length;
47 public:
48    JPEGFragment();
49    void Print( std::string indent = "", std::ostream &os = std::cout );
50 };
51 } // end namespace gdcm
52
53 //-----------------------------------------------------------------------------
54 #endif