Logo Search packages:      
Sourcecode: gdcm version File versions  Download package

bool gdcm::FileDerivation::AddReference ( const char *  referencedsopclassuid,
const char *  referencedsopinstanceuid 
)

Create the proper reference. Need to pass the original SOP Class UID and the original SOP Instance UID, so that those value can be used as Reference.

Warning:
referencedsopclassuid and referencedsopinstanceuid needs to be padded. This is not compatible with how ByteValue->GetPointer works.

Definition at line 236 of file gdcmFileDerivation.cxx.

References gdcm::UIDGenerator::IsValid().

{
  if( !gdcm::UIDGenerator::IsValid(referencedsopclassuid) )
    {
    return false;
    }
  if( !gdcm::UIDGenerator::IsValid(referencedsopinstanceuid) )
    {
    return false;
    }
  //
  Internals->References.push_back( std::make_pair( referencedsopclassuid, referencedsopinstanceuid) );
  return true;
}


Generated by  Doxygen 1.6.0   Back to index