14 #ifndef GDCMPRIVATETAG_H
15 #define GDCMPRIVATETAG_H
42 PrivateTag(uint16_t group = 0, uint16_t element = 0,
const char *owner =
""):
Tag(group,element),Owner(owner ?
LOComp::Trim(owner) :
"") {
44 SetElement( (uint8_t)element );
51 const char *
GetOwner()
const {
return Owner.c_str(); }
52 void SetOwner(
const char *owner) {
if(owner) Owner = LOComp::Trim(owner); }
58 bool ReadFromCommaSeparatedString(
const char *str);
70 os.setf( std::ios::right );
71 os << std::hex <<
'(' << std::setw( 4 ) << std::setfill(
'0' )
72 << val[0] <<
',' << std::setw( 2 ) << std::setfill(
'0' )
75 os <<
')' << std::setfill(
' ' ) << std::dec;
81 #endif //GDCMPRIVATETAG_H
PrivateTag(Tag const &t, const char *owner="")
Definition: gdcmPrivateTag.h:46
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner) ...
Definition: gdcmPrivateTag.h:38
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
uint16_t GetElement() const
Returns the 'Element number' of the given Tag.
Definition: gdcmTag.h:57
std::ostream & operator<<(std::ostream &os, const PrivateTag &val)
Definition: gdcmPrivateTag.h:67
String<'\\', 64 > LOComp
Definition: gdcmVR.h:249
Class to represent a Data Element either Implicit or Explicit.
Definition: gdcmDataElement.h:58
const char * GetOwner() const
Definition: gdcmPrivateTag.h:51
PrivateTag(uint16_t group=0, uint16_t element=0, const char *owner="")
Definition: gdcmPrivateTag.h:42
void SetOwner(const char *owner)
Definition: gdcmPrivateTag.h:52
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38