#include <cstdlib>
#include <cstring>
{
static size_t countglobal = 0;
static std::vector<gdcm::Tag> balcptags =
size_t count = countglobal % balcptags.size();
const VR &vr = dictentry.
GetVR();
if( vr.IsDual() )
{
if( vr == VR::US_SS )
{
}
else if( vr == VR::US_SS_OW )
{
}
else if( vr == VR::OB_OW )
{
}
}
else
{
}
const char str[] = "BasicApplicationLevelConfidentialityProfileAttributes";
const char safe[] = "This is safe to keep";
if( de.
GetVR() != VR::SQ )
{
if( toremove )
else
}
else
{
sq->SetLengthToUndefined();
if( !toremove )
{
nds.
Insert( CreateFakeElement( balcptags[count],
true ) );
countglobal++;
}
else
{
}
sq->AddItem(it);
}
return de;
}
int main(int argc, char *argv[])
{
if( argc < 2 )
{
std::cerr << argv[0] << " output.dcm" << std::endl;
return 1;
}
const char *outfilename = argv[1];
std::vector<gdcm::Tag> balcptags =
std::vector<gdcm::Tag>::const_iterator it = balcptags.begin();
for(; it != balcptags.end(); ++it)
{
ds.
Insert( CreateFakeElement( *it,
true ) );
}
Dict::ConstIterator dictit = pubdict.
Begin();
for(; dictit != pubdict.
End(); ++dictit)
{
if( dicttag == Tag(0x6e65,0x6146) ) break;
ds.
Insert( CreateFakeElement( dicttag,
false ) );
}
de.SetVR( VR::UI );
de.SetByteValue( u, strlen(u) );
de.SetTag( Tag(0x8,0x16) );
de.SetVR( VR::UI );
de.SetByteValue( ms.GetString(), strlen(ms.GetString()));
{
return 1;
}
return 0;
}