예제 #1
0
void ImageSegment::setSubheader(nitf::ImageSubheader & value)
{
    //release the one currently "owned"
    nitf::ImageSubheader sub = nitf::ImageSubheader(getNativeOrThrow()->subheader);
    sub.setManaged(false);

    //have the library manage the "new" one
    getNativeOrThrow()->subheader = value.getNative();
    value.setManaged(true);
}