# gdcmFileSet.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004   Module:  $URL$
    00005
    00006   Copyright (c) 2006-2009 Mathieu Malaterre
    00007   All rights reserved.
    00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
    00009
    00010      This software is distributed WITHOUT ANY WARRANTY; without even
    00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00012      PURPOSE.  See the above copyright notice for more information.
    00013
    00014 =========================================================================*/
    00015 #ifndef __gdcmFileSet_h
    00016 #define __gdcmFileSet_h
    00017
    00018 #include "gdcmFile.h"
    00019 #include <vector>
    00020
    00021 namespace gdcm
    00022 {
    00028 class GDCM_EXPORT FileSet
    00029 {
    00030   friend std::ostream& operator<<(std::ostream &_os, const FileSet &d);
    00031 public:
    00032   FileSet():Files() {}
    00033   typedef std::string FileType;
    00034   typedef std::vector<FileType> FilesType;
    00035
    00037   void AddFile(File const & ) {}
    00038
    00041   bool AddFile(const char *filename);
    00042
    00043   void SetFiles(FilesType const &files);
    00044   FilesType const &GetFiles() const {
    00045     return Files;
    00046   }
    00047
    00048 private:
    00049   FilesType Files;
    00050 };
    00051 //-----------------------------------------------------------------------------
    00052 inline std::ostream& operator<<(std::ostream &os, const FileSet &f)
    00053 {
    00054   return os;
    00055 }
    00056
    00057 } // end namespace gdcm
    00058
    00059 #endif //__gdcmFileSet_h