GDCM: gdcmFileSet.h Source File

GDCM 3.2.5

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
20namespace gdcm
21{
26 class GDCM_EXPORT FileSet
27{
28 friend std::ostream& operator<<(std::ostream &_os, const FileSet &d);
29public:
30 FileSet():Files() {}
31 typedef std::string FileType;
32 typedef std::vector<FileType> FilesType;
33
35 void AddFile(File const & ) {}
36
39 bool AddFile(const char *filename);
40
41 void SetFiles(FilesType const &files);
42 FilesType const &GetFiles() const {
43 return Files;
44 }
45
46private:
47 FilesType Files;
48};
49//-----------------------------------------------------------------------------
50 inline std::ostream& operator<<(std::ostream &os, const FileSet &f)
51{
52 (void)f; // FIXME
53 return os;
54}
55
56} // end namespace gdcm
57
58#endif //GDCMFILESET_H
gdcm::FileSet::operator<<
friend std::ostream & operator<<(std::ostream &_os, const FileSet &d)
Definition gdcmFileSet.h:50
gdcm::FileSet::FileSet
FileSet()
Definition gdcmFileSet.h:30
gdcm::FileSet::FileType
std::string FileType
Definition gdcmFileSet.h:31
gdcm::FileSet::FilesType
std::vector< FileType > FilesType
Definition gdcmFileSet.h:32
gdcm::FileSet::AddFile
void AddFile(File const &)
Definition gdcmFileSet.h:35
gdcm::FileSet::SetFiles
void SetFiles(FilesType const &files)
gdcm::FileSet::GetFiles
FilesType const & GetFiles() const
Definition gdcmFileSet.h:42
gdcm::FileSet::AddFile
bool AddFile(const char *filename)
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcmFile.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88