comparison Core/DicomFormat/DicomMap.cpp @ 59:c996319e90bc orthanc-renaming

renaming in Core
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 16 Sep 2012 09:28:56 +0200
parents 293038baf8f1
children b8dfde8d64e8
comparison
equal deleted inserted replaced
58:6da7fc87efaa 59:c996319e90bc
1 /** 1 /**
2 * Palanthir - A Lightweight, RESTful DICOM Store 2 * Orthanc - 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 "../PalanthirException.h" 26 #include "../OrthancException.h"
27 27
28 28
29 namespace Palanthir 29 namespace Orthanc
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
176 { 176 {
177 Map::const_iterator it = map_.find(tag); 177 Map::const_iterator it = map_.find(tag);
178 178
179 if (it == map_.end()) 179 if (it == map_.end())
180 { 180 {
181 throw PalanthirException("Inexistent tag"); 181 throw OrthancException("Inexistent tag");
182 } 182 }
183 else 183 else
184 { 184 {
185 return *it->second; 185 return *it->second;
186 } 186 }