33 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/dcmdata/dcchrstr.h" 52 const Uint32 len = 0);
94 virtual DcmEVR
ident()
const;
104 const OFBool oldFormat = OFFalse);
113 const unsigned long pos,
114 OFBool normalize = OFTrue);
141 const unsigned long pos = 0,
142 const unsigned int componentGroup = 0);
155 const unsigned long pos = 0,
156 const unsigned int componentGroup = 0);
204 const unsigned int componentGroup = 0);
218 const unsigned int componentGroup = 0);
269 const OFBool oldFormat = OFTrue);
a class representing the DICOM value representation 'Person Name' (PN)
virtual DcmObject * clone() const
clone method
virtual DcmEVR ident() const
get element type identifier
this class encapsulates an attribute tag (group, element) and a VR.
DcmPersonName & operator=(const DcmPersonName &obj)
assignment operator
static OFCondition checkStringValue(const OFString &value, const OFString &vm="1-n", const OFBool oldFormat=OFTrue)
check whether given string value conforms to the VR "PN" (Person Name) and to the specified VM...
OFCondition getNameComponents(OFString &lastName, OFString &firstName, OFString &middleName, OFString &namePrefix, OFString &nameSuffix, const unsigned long pos=0, const unsigned int componentGroup=0)
get name components from the element value.
Abstract base class for most classes in module dcmdata.
base class for DICOM elements with value representation LO, LT, PN, SH, ST, UT
static OFCondition getFormattedNameFromComponents(const OFString &lastName, const OFString &firstName, const OFString &middleName, const OFString &namePrefix, const OFString &nameSuffix, OFString &formattedName)
get formatted/readable name from specified name components.
OFCondition getFormattedName(OFString &formattedName, const unsigned long pos=0, const unsigned int componentGroup=0)
get current element value as a formatted/readable name.
virtual OFCondition getOFString(OFString &stringVal, const unsigned long pos, OFBool normalize=OFTrue)
get a copy of a particular string component
virtual OFCondition checkValue(const OFString &vm="1-n", const OFBool oldFormat=OFFalse)
check whether stored value conforms to the VR and to the specified VM
static OFCondition getFormattedNameFromString(const OFString &dicomName, OFString &formattedName, const unsigned int componentGroup=0)
get specified DICOM person name as a formatted/readable name.
static OFCondition getStringFromNameComponents(const OFString &lastName, const OFString &firstName, const OFString &middleName, const OFString &namePrefix, const OFString &nameSuffix, OFString &dicomName)
get DICOM Person Name (PN) from specified name components.
static OFCondition getNameComponentsFromString(const OFString &dicomName, OFString &lastName, OFString &firstName, OFString &middleName, OFString &namePrefix, OFString &nameSuffix, const unsigned int componentGroup=0)
get name components from specified DICOM person name.
OFCondition putNameComponents(const OFString &lastName, const OFString &firstName, const OFString &middleName, const OFString &namePrefix, const OFString &nameSuffix)
put element value from specified name components.
a simple string class that implements a subset of std::string.
virtual ~DcmPersonName()
destructor
DcmPersonName(const DcmTag &tag, const Uint32 len=0)
constructor.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
General purpose class for condition codes.