gdcmFileSet.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMFILESET_H
#define GDCMFILESET_H
#include "gdcmFile.h"
#include <vector>
namespace gdcm
{
class GDCM_EXPORT FileSet
{
friend std::ostream& operator<<(std::ostream &_os, const FileSet &d);
public:
FileSet():Files() {}
typedef std::string FileType;
typedef std::vector<FileType> FilesType;
void AddFile(File const & ) {}
bool AddFile(const char *filename);
void SetFiles(FilesType const &files);
FilesType const &GetFiles() const {
return Files;
}
private:
FilesType Files;
};
//-----------------------------------------------------------------------------
inline std::ostream& operator<<(std::ostream &os, const FileSet &f)
{
(void)f; // FIXME
return os;
}
} // end namespace gdcm
#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