gdcmNestedModuleEntries.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 GDCMNESTEDMODULEENTRIES_H
#define GDCMNESTEDMODULEENTRIES_H
#include "gdcmModuleEntry.h"
#include <vector>
namespace gdcm
{
class GDCM_EXPORT NestedModuleEntries : public ModuleEntry
{
public:
NestedModuleEntries(const char *name = "", const char *type = "3", const char *description = ""):ModuleEntry(name,type,description) { }
friend std::ostream& operator<<(std::ostream& _os, const NestedModuleEntries &_val);
typedef std::vector<ModuleEntry>::size_type SizeType;
SizeType GetNumberOfModuleEntries() { return ModuleEntriesList.size(); }
const ModuleEntry &GetModuleEntry(SizeType idx) const { return ModuleEntriesList[idx]; }
ModuleEntry &GetModuleEntry(SizeType idx) { return ModuleEntriesList[idx]; }
void AddModuleEntry(const ModuleEntry &me) { ModuleEntriesList.push_back( me ); }
private:
std::vector<ModuleEntry> ModuleEntriesList;
};
//-----------------------------------------------------------------------------
inline std::ostream& operator<<(std::ostream& _os, const NestedModuleEntries &_val)
{
_os << "Nested:" << _val.Name << "\t" << _val.DataElementType << "\t" << _val.DescriptionField;
return _os;
}
typedef NestedModuleEntries NestedMacroEntries;
} // end namespace gdcm
#endif //GDCMNESTEDMODULEENTRIES_H
gdcm::ModuleEntry::Name
std::string Name
Definition gdcmModuleEntry.h:56
gdcm::ModuleEntry::DataElementType
Type DataElementType
Definition gdcmModuleEntry.h:60
gdcm::ModuleEntry::DescriptionField
Description DescriptionField
Definition gdcmModuleEntry.h:63
gdcm::ModuleEntry::ModuleEntry
ModuleEntry(const char *name="", const char *type="3", const char *description="")
Definition gdcmModuleEntry.h:32
gdcm::NestedModuleEntries
Class for representing a NestedModuleEntries.
Definition gdcmNestedModuleEntries.h:28
gdcm::NestedModuleEntries::NestedModuleEntries
NestedModuleEntries(const char *name="", const char *type="3", const char *description="")
Definition gdcmNestedModuleEntries.h:30
gdcm::NestedModuleEntries::GetModuleEntry
const ModuleEntry & GetModuleEntry(SizeType idx) const
Definition gdcmNestedModuleEntries.h:36
gdcm::NestedModuleEntries::GetModuleEntry
ModuleEntry & GetModuleEntry(SizeType idx)
Definition gdcmNestedModuleEntries.h:37
gdcm::NestedModuleEntries::AddModuleEntry
void AddModuleEntry(const ModuleEntry &me)
Definition gdcmNestedModuleEntries.h:39
gdcm::NestedModuleEntries::GetNumberOfModuleEntries
SizeType GetNumberOfModuleEntries()
Definition gdcmNestedModuleEntries.h:34
gdcm::NestedModuleEntries::SizeType
std::vector< ModuleEntry >::size_type SizeType
Definition gdcmNestedModuleEntries.h:33
gdcmModuleEntry.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::NestedMacroEntries
NestedModuleEntries NestedMacroEntries
Definition gdcmNestedModuleEntries.h:51
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88