+ // Valid VR
+ if( !vr->IsValidVR( "PN" ) )
+ {
+ std::cerr << "'PN' is not recognized as a valid VR" << std::endl;
+ error++;
+ }
+ if( !vr->IsValidVR( "FD" ) )
+ {
+ std::cerr << "'FD' is not recognized as a valid VR" << std::endl;
+ error++;
+ }
+ if( vr->IsValidVR( "" ) )
+ {
+ std::cerr << "'' is recognized as a valid VR" << std::endl;
+ error++;
+ }
+ if( vr->IsValidVR( " " ) )
+ {
+ std::cerr << "' ' is recognized as a valid VR" << std::endl;
+ error++;
+ }
+ if( vr->IsValidVR( "\000/" ) )
+ {
+ std::cerr << "' /' is recognized as a valid VR" << std::endl;
+ error++;
+ }
+ if( vr->IsValidVR( GDCM_NAME_SPACE::GDCM_VRUNKNOWN ) )
+ {
+ std::cerr << "' ' is recognized as a valid VR" << std::endl;
+ error++;
+ }
+
+ // String representable
+ //---------------------
+ if( !vr->IsVROfStringRepresentable( "PN" ) )
+ {
+ std::cerr << "'PN' is not recognized as a string representable" << std::endl;
+ error++;
+ }
+ if( vr->IsVROfStringRepresentable( "OB" ) )
+ {
+ std::cerr << "'OB' is recognized as a string representable" << std::endl;
+ error++;
+ }
+
+ // Binary representable
+ //---------------------
+ if( !vr->IsVROfBinaryRepresentable( "OB" ) )
+ {
+ std::cerr << "OB is not recognized as a binary representable" << std::endl;
+ error++;
+ }
+ if( vr->IsVROfBinaryRepresentable( "PN" ) )
+ {
+ std::cerr << "'PN' is a binary representable" << std::endl;
+ error++;
+ }