Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ApplicationCore
Commits
3b6c144b
Commit
3b6c144b
authored
4 years ago
by
Christoph Kampmeyer
Browse files
Options
Downloads
Patches
Plain Diff
wip #107: Use getVirtualQualifiedName() in StatusAggregator
parent
3a7d5dab
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/src/StatusAggregator.cc
+31
-25
31 additions, 25 deletions
Modules/src/StatusAggregator.cc
with
31 additions
and
25 deletions
Modules/src/StatusAggregator.cc
+
31
−
25
View file @
3b6c144b
#include
"StatusAggregator.h"
#include
<list>
#include
<regex>
namespace
ChimeraTK
{
...
...
@@ -22,39 +23,44 @@ namespace ChimeraTK{
// }
// Works, as long as we do not use HIerarchyModifiers other than "none" in the test app
// Update: This still has problems, because getOwner gives us the "real" C++ Module
// We need to do everything on the virtual plane
// auto allAccessors{getOwner()->findTag(".*").getAccessorListRecursive()};
// Another try, virtualise the entire Application
auto
virtualApplicationHierarchy
=
Application
::
getInstance
().
findTag
(
".*"
);
auto
virtualPathToThis
=
getVirtualQualifiedName
();
std
::
cout
<<
" ** Fully qualified name in vitual hierarchy: "
//<< virtualApplicationHierarchy.getQualifiedName() << std::endl;
<<
getVirtualQualifiedName
()
<<
std
::
endl
;
// std::cout << " Size of allAccessors: " << allAccessors.size() << std::endl;
// Split the name into individual modules
std
::
regex
pathsepRegex
{
"/"
};
std
::
sregex_token_iterator
name
{
virtualPathToThis
.
begin
(),
virtualPathToThis
.
end
(),
pathsepRegex
,
-
1
},
end
;
// for(auto acc : allAccessors){
// if(acc.getDirection().dir == VariableDirection::feeding){
// std::cout << " -- Accessor: " << acc.getName()
// << " of module: " << acc.getOwningModule()->getName()
// << std::endl;
// }
++
name
;
// Leave out first, empty match. FIXME: Should be avoided by regex
while
(
name
!=
end
){
std
::
cout
<<
"Current path elem: "
<<
*
(
name
++
)
<<
std
::
endl
;
}
// }
// I can just call submodule instead of the above procedure
//Module& thisModule = virtualApplicationHierarchy.submodule(virtualPathToThis);
//
Another try, virtualise the entire Application
auto
virtualApplicationHierarchy
=
Application
::
getInstance
().
findTag
(
".*"
);
std
::
cout
<<
" ** Fully qualified name in
vitual
hierarchy: "
<<
virtualApplicationHierarchy
.
getQualifiedName
()
<<
std
::
endl
;
//
Works, as long as we do not use HIerarchyModifiers other than "none" in the test app
// Update: This still has problems, because getOwner gives us the "real" C++ Module
// We need to do everything on the
vi
r
tual
plane
// auto allAccessors{getOwner()->findTag(".*").getAccessorListRecursive()}
;
virtualApplicationHierarchy
.
virtualise
();
auto
virtualizedModuleList
=
virtualApplicationHierarchy
.
getSubmoduleListRecursive
();
// std::cout << " Size of allAccessors: " << allAccessors.size() << std::endl;
for
(
auto
module
:
virtualizedModuleList
){
std
::
cout
<<
" ** "
<<
module
->
getQualifiedName
();
if
(
module
==
this
){
std
::
cout
<<
" THIS IS THIS STATUS_AGGREGATOR!"
;
}
std
::
cout
<<
std
::
endl
;
}
// for(auto acc : allAccessors){
// if(acc.getDirection().dir == VariableDirection::feeding){
// std::cout << " -- Accessor: " << acc.getName()
// << " of module: " << acc.getOwningModule()->getName()
// << std::endl;
// }
// }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment