Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mdaus
nitro
Repository navigation
Code
Issues
17
(17)
Pull requests
5
(5)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
IterExtensions15C
Jump to bottom
anna-dodd edited this page
Jun 3, 2015
·
1 revision
Removing a TRE without using an iterator:
if
(
nitf_Extensions_exists
(
ext, TRE_NAME
)
)
{
nitf_Extensions_removeTREsByName
(
ext, TRE_NAME
)
;
}
Walking through an Extensions segment and removing (and re-inserting a TRE)
extIter = nitf_Extensions_begin
(
ext
)
;
endIter = nitf_Extensions_end
(
ext
)
;
while
(
nitf_ExtensionsIterator_notEqualTo
(
&extIter, &endIter
)
)
{
nitf_TRE* tre = nitf_ExtensionsIterator_get
(
&extIter
)
;
if
(
strcmp
(
tre->tag, TRE_NAME
)
==
0
)
{
if
(
(
tre = nitf_Extensions_remove
(
ext, &extIter, &lerror
)
)
==
NULL
)
{
nitf_Error_print
(
&lerror, stdout,
"Couldnt blow away %s!
\n
"
, tre->tag
)
;
goto
CATCH_ERROR;
}
if
(
! nitf_Extensions_insert
(
ext, &extIter, tre, &lerror
)
)
{
nitf_Error_print
(
&lerror, stdout,
"Couldnt insert %s
\n
"
, tre->tag
)
;
goto
CATCH_ERROR;
}
}
nitf_ExtensionsIterator_increment
(
&extIter
)
;
}
Wiki pages
Pages
55
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
AddTreToRecord15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
AddTreToRecrod20C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
BandInfo Java 1.5
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
BandSource Java 1.5
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
BlockingInfo Java 1.5
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ExtensionDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FAQ
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FieldDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FileHeaderDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FileSecurityDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GetField15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GetField15Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GetField15Python
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GetField20C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
HashTableDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ImageReaderDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ImageSegmentDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterExtensions15C
Loading
IterExtensions15Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterExtensions15Python
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterImageSegs15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterImageSegs15Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterTres15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterTres15Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterTres15Python
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterTres20C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IterTres20Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Java API V 1.5 Nitro
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Java API V 2.0 Nitro
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Java API V 2.5 Nitro
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
JPEG Decompression Plugin
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ListDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
NITRO Code Snippets
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
NitroAPI links
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Plugin Registry
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Python 1.5 working doc
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Python API V 1.5 Nitro
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Python API V 2.0 Nitro
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ReaderDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ReadImage15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ReadImage15Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ReadImage15Python
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ReadRecord15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ReadRecord15Python
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
RecordDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SetField15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SetField15Java
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SetField20C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
TreDef
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WriteAdvTrePlugin20C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WriteBasicTrePlugin15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WriteBasicTrePlugin20C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WriteDesData15C
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WriteNITF20C
Uh oh!
There was an error while loading.
Please reload this page
.
Show 40 more pages…
Clone this wiki locally
You can’t perform that action at this time.