GDCM  2.2.6
gdcmFileSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 #ifndef GDCMFILESET_H
15 #define GDCMFILESET_H
16 
17 #include "gdcmFile.h"
18 #include <vector>
19 
20 namespace gdcm
21 {
28 {
29  friend std::ostream& operator<<(std::ostream &_os, const FileSet &d);
30 public:
31  FileSet():Files() {}
32  typedef std::string FileType;
33  typedef std::vector<FileType> FilesType;
34 
36  void AddFile(File const & ) {}
37 
40  bool AddFile(const char *filename);
41 
42  void SetFiles(FilesType const &files);
43  FilesType const &GetFiles() const {
44  return Files;
45  }
46 
47 private:
48  FilesType Files;
49 };
50 //-----------------------------------------------------------------------------
51 inline std::ostream& operator<<(std::ostream &os, const FileSet &f)
52 {
53  (void)f; // FIXME
54  return os;
55 }
56 
57 } // end namespace gdcm
58 
59 #endif //GDCMFILESET_H
std::vector< FileType > FilesType
Definition: gdcmFileSet.h:33
FilesType const & GetFiles() const
Definition: gdcmFileSet.h:43
FileSet()
Definition: gdcmFileSet.h:31
std::string FileType
Definition: gdcmFileSet.h:32
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:92
File-set: A File-set is a collection of DICOM Files (and possibly non-DICOM Files) that share a commo...
Definition: gdcmFileSet.h:27
void AddFile(File const &)
Definition: gdcmFileSet.h:36
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

Generated on Sat Dec 21 2013 05:56:17 for GDCM by doxygen 1.8.5
SourceForge.net Logo