comparison Core/DicomFormat/DicomMap.cpp @ 50:a15e90e5d6fc

rename in code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Sep 2012 15:50:12 +0200
parents c1097a676eca
children 293038baf8f1
comparison
equal deleted inserted replaced
49:e1a3ae0dadf3 50:a15e90e5d6fc
1 /** 1 /**
2 * Palantir - A Lightweight, RESTful DICOM Store 2 * Palanthir - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * This program is free software: you can redistribute it and/or 6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as 7 * modify it under the terms of the GNU General Public License as
21 #include "DicomMap.h" 21 #include "DicomMap.h"
22 22
23 #include <stdio.h> 23 #include <stdio.h>
24 #include <memory> 24 #include <memory>
25 #include "DicomString.h" 25 #include "DicomString.h"
26 #include "../PalantirException.h" 26 #include "../PalanthirException.h"
27 27
28 28
29 namespace Palantir 29 namespace Palanthir
30 { 30 {
31 static DicomTag patientTags[] = 31 static DicomTag patientTags[] =
32 { 32 {
33 DicomTag(0x0010, 0x0010), // PatientName 33 DicomTag(0x0010, 0x0010), // PatientName
34 DicomTag(0x0010, 0x0020), // PatientID 34 DicomTag(0x0010, 0x0020), // PatientID
175 { 175 {
176 Map::const_iterator it = map_.find(tag); 176 Map::const_iterator it = map_.find(tag);
177 177
178 if (it == map_.end()) 178 if (it == map_.end())
179 { 179 {
180 throw PalantirException("Inexistent tag"); 180 throw PalanthirException("Inexistent tag");
181 } 181 }
182 else 182 else
183 { 183 {
184 return *it->second; 184 return *it->second;
185 } 185 }