vega
date_manipulator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "vega/date.h"
5 
6 namespace vega {
7  namespace manipulators {
8  class DateManipulator : public PaddedStringManipulator<Date> {
10 
11  public:
12  virtual bool is_valid_for(const VR& vr) const override {
13  return vr == vr::DA;
14  }
15  };
16  }
17 
18  namespace vr {
19  template <>
20  bool manipulator_is_valid_for<manipulators::DateManipulator>(VR::value_type value);
21  }
22 }
Definition: vr.h:13
uint16_t value_type
Definition: vr.h:29
virtual bool is_valid_for(const VR &vr) const override
Definition: date_manipulator.h:12
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
const VR DA
Definition: vr_constants.h:150
Definition: date_manipulator.h:8