Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gdcmJPEGFragmentsInfo.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmJPEGFragmentsInfo.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/02/06 14:43:28 $
00007   Version:   $Revision: 1.20 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 
00020 #ifndef GDCMJPEGFRAGMENTSINFO_H
00021 #define GDCMJPEGFRAGMENTSINFO_H
00022 
00023 #include "gdcmJPEGFragment.h"
00024 
00025 #include <list>
00026 #include <iostream>
00027 
00028 namespace gdcm 
00029 {
00040 class GDCM_EXPORT JPEGFragmentsInfo
00041 {
00042 public:
00043    JPEGFragmentsInfo();
00044    ~JPEGFragmentsInfo();
00045    void Print( std::ostream &os = std::cout, std::string const &indent = "" );
00046 
00047    void DecompressFromFile(std::ifstream *fp, uint8_t *buffer, int nBits,
00048                            int numBytes, int length);
00049 
00050    void AddFragment(JPEGFragment *fragment);
00051    JPEGFragment *GetFirstFragment();
00052    JPEGFragment *GetNextFragment();
00053    unsigned int GetFragmentCount();
00054 
00055 private:
00056    typedef std::list<JPEGFragment *> JPEGFragmentsList;
00057 
00058     //Some mathieu hack:
00059    int StateSuspension;
00060    void *SampBuffer;
00061    char *pimage;
00062    JPEGFragmentsList Fragments;
00063    JPEGFragmentsList::iterator ItFragments;
00064 };
00065 } // end namespace gdcm
00066 
00067 //-----------------------------------------------------------------------------
00068 #endif
00069 

Generated on Thu Feb 10 22:17:59 2005 for gdcm by doxygen 1.3.6