vega
person_name_manipulator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
5 
6 namespace vega {
7  namespace manipulators {
8  class PersonNameManipulator : public PaddedStringManipulator<std::string> {
10 
11  public:
12  virtual bool is_valid_for(const VR& vr) const override {
13  return vr == vr::PN;
14  }
15  };
16  }
17 
18  namespace vr {
19  template <>
20  bool manipulator_is_valid_for<manipulators::PersonNameManipulator>(VR::value_type value);
21  }
22 }
Definition: vr.h:13
virtual bool is_valid_for(const VR &vr) const override
Definition: person_name_manipulator.h:12
Definition: person_name_manipulator.h:8
uint16_t value_type
Definition: vr.h:29
const VR PN
Definition: vr_constants.h:298
Definition: age.h:6
A manipulator class for VR that represent elements which are encoded in DICOM using strings...
Definition: padded_string_manipulator.h:89