/usr/include/vtkDICOMDictEntry.h is in libvtk-dicom-dev 0.7.10-1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2015 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt 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 vtkDICOMDictEntry_h
#define vtkDICOMDictEntry_h
#include "vtkDICOMModule.h" // For export macro
#include "vtkDICOMVR.h"
#include "vtkDICOMVM.h"
#include "vtkDICOMTag.h"
//! An entry in the DICOM dictionary.
class VTKDICOM_EXPORT vtkDICOMDictEntry
{
public:
//! A struct to statically store DICOM dictionary entries.
struct Entry
{
unsigned short Group;
unsigned short Element;
unsigned char Flags;
unsigned char VR;
unsigned short VM;
const char *Name;
};
//! Construct an invalid DictEntry object.
vtkDICOMDictEntry() : I(&InvalidEntry) {}
//! Check whether the returned entry is valid.
bool IsValid() const {
return (this->I != &InvalidEntry); }
//! Get the DICOM tag for this dictionary entry.
vtkDICOMTag GetTag() const {
return vtkDICOMTag(this->I->Group, this->I->Element); }
//! Get the VR for this dictionary entry.
vtkDICOMVR GetVR() const {
return vtkDICOMVR(static_cast<vtkDICOMVR::EnumType>(this->I->VR)); }
//! Get the VM for this dictionary entry.
vtkDICOMVM GetVM() const {
return vtkDICOMVM(static_cast<vtkDICOMVM::EnumType>(this->I->VM)); }
//! Get a human-readable name for this dictionary entry.
const char *GetName() const {
return this->I->Name; }
//! Check whether this entry has been retired from the DICOM standard.
bool IsRetired() const {
return (this->I->Flags == 1); }
private:
vtkDICOMDictEntry(const Entry *o) : I(o) {}
friend class vtkDICOMDictionary;
const Entry *I;
static const Entry InvalidEntry;
};
VTKDICOM_EXPORT ostream& operator<<(ostream& o, const vtkDICOMDictEntry& a);
#endif /* vtkDICOMDictEntry_h */
// VTK-HeaderTest-Exclude: vtkDICOMDictEntry.h
|