Logo Search packages:      
Sourcecode: gdcm version File versions  Download package



  Program: GDCM (Grassroots DICOM). A DICOM library
  Module:  $URL$

  Copyright (c) 2006-2009 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 __gdcmTable_h
#define __gdcmTable_h

#include "gdcmTableEntry.h"
#include "gdcmTag.h"

#include <map>

namespace gdcm

 * \brief Table
00029 class Table
  typedef std::map<Tag, TableEntry> MapTableEntry;
  Table() {}
  ~Table() {}

  friend std::ostream& operator<<(std::ostream& _os, const Table &_val);

  void InsertEntry(Tag const &tag, TableEntry const &te)
#ifndef NDEBUG
    MapTableEntry::size_type s = TableInternal.size();
      MapTableEntry::value_type(tag, te));
    assert( s < TableInternal.size() );

  const TableEntry &GetTableEntry(const Tag &tag) const
    MapTableEntry::const_iterator it = 
    if (it == TableInternal.end())
      assert( 0 && "Impossible" );
      return GetTableEntry(Tag(0,0));
    return it->second;

  Table &operator=(const Table &_val); // purposely not implemented
  Table(const Table&_val); // purposely not implemented

  MapTableEntry TableInternal;

} // end namespace gdcm

#endif //__gdcmTable_h

Generated by  Doxygen 1.6.0   Back to index