Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
cd54abea
Commit
cd54abea
authored
Mar 19, 2013
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: namespace -core- does not exist (yet ?)
parent
35e38f35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
Code/Common/ApplicationsWrapper/mvdApplicationsBrowser.cxx
Code/Common/ApplicationsWrapper/mvdApplicationsBrowser.cxx
+10
-10
Code/Common/ApplicationsWrapper/mvdApplicationsBrowser.h
Code/Common/ApplicationsWrapper/mvdApplicationsBrowser.h
+3
-3
No files found.
Code/Common/ApplicationsWrapper/mvdApplicationsBrowser.cxx
View file @
cd54abea
...
...
@@ -89,7 +89,7 @@ ApplicationsBrowser
}
/*******************************************************************************/
core
::
StringVector
StringVector
ApplicationsBrowser
::
GetAvailableApplications
()
{
...
...
@@ -103,7 +103,7 @@ ApplicationsBrowser
//
// get available application in search path
core
::
StringVector
appList
=
otb
::
Wrapper
::
ApplicationRegistry
::
GetAvailableApplications
();
StringVector
appList
=
otb
::
Wrapper
::
ApplicationRegistry
::
GetAvailableApplications
();
//
// some verbosity
...
...
@@ -115,7 +115,7 @@ ApplicationsBrowser
else
{
std
::
cout
<<
"--- Available modules :"
<<
std
::
endl
;
for
(
core
::
StringVector
::
const_iterator
it
=
appList
.
begin
();
it
!=
appList
.
end
();
++
it
)
for
(
StringVector
::
const_iterator
it
=
appList
.
begin
();
it
!=
appList
.
end
();
++
it
)
{
std
::
cout
<<
"
\t
"
<<
*
it
<<
std
::
endl
;
}
...
...
@@ -125,13 +125,13 @@ ApplicationsBrowser
}
/*******************************************************************************/
core
::
StringVector
StringVector
ApplicationsBrowser
::
GetApplicationTags
(
const
std
::
string
&
appName
)
{
//
// output vector
core
::
StringVector
vtags
;
StringVector
vtags
;
//
// instantiate the application using the factory
...
...
@@ -155,7 +155,7 @@ ApplicationsBrowser
{
//
// get all the applications in the search path
core
::
StringVector
vapp
=
GetAvailableApplications
();
StringVector
vapp
=
GetAvailableApplications
();
//
// Fill the map as following
...
...
@@ -167,15 +167,15 @@ ApplicationsBrowser
while
(
it
!=
vapp
.
end
()
)
{
// get tags of current app
core
::
StringVector
ctags
=
GetApplicationTags
(
*
it
);
StringVector
ctags
=
GetApplicationTags
(
*
it
);
// key will be the tag (easier for tree origanisation in )
core
::
StringVector
::
const_iterator
itTag
=
ctags
.
begin
();
StringVector
::
const_iterator
itTag
=
ctags
.
begin
();
while
(
itTag
!=
ctags
.
end
()
)
{
// search for this tag in the output container
core
::
ApplicationsTagContainer
::
iterator
pos
=
outputContainer
.
find
(
*
itTag
);
ApplicationsTagContainer
::
iterator
pos
=
outputContainer
.
find
(
*
itTag
);
if
(
pos
!=
outputContainer
.
end
()
)
// key found
{
//
...
...
@@ -186,7 +186,7 @@ ApplicationsBrowser
{
//
// if tag not found in the container, add it
std
::
pair
<
std
::
string
,
core
::
StringVector
>
currentAppTags
;
std
::
pair
<
std
::
string
,
StringVector
>
currentAppTags
;
currentAppTags
.
first
=
*
itTag
;
currentAppTags
.
second
.
push_back
(
*
it
);
outputContainer
.
insert
(
currentAppTags
);
...
...
Code/Common/ApplicationsWrapper/mvdApplicationsBrowser.h
View file @
cd54abea
...
...
@@ -108,10 +108,10 @@ public:
void
SetAutoLoadPath
(
const
std
::
string
&
itk_auto_load_path
);
/** get available applications in the search path */
core
::
StringVector
GetAvailableApplications
();
StringVector
GetAvailableApplications
();
/** return the list applications <->tags */
core
::
StringVector
GetApplicationTags
(
const
std
::
string
&
appName
);
StringVector
GetApplicationTags
(
const
std
::
string
&
appName
);
/** return std::map storing tag/apps association for all the
* applications in the search path
...
...
@@ -130,7 +130,7 @@ public slots:
//
// Signals.
signals:
void
AvailableApplicationsTagsChanged
(
const
core
::
ApplicationsTagContainer
&
);
void
AvailableApplicationsTagsChanged
(
const
ApplicationsTagContainer
&
);
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment