Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
GeoModelDev
GeoModel
Commits
a8943010
Commit
a8943010
authored
3 years ago
by
Riccardo Maria Bianchi
Browse files
Options
Downloads
Patches
Plain Diff
format code
parent
4b46c9b0
No related branches found
No related tags found
1 merge request
!128
GeoModelXml improvements: remove the automatic insertion of NameTags and Identifiers, expand Examples.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GeoModelTools/GeoModelXML/GeoModelXml/src/LogvolProcessor.cxx
+6
-5
6 additions, 5 deletions
...odelTools/GeoModelXML/GeoModelXml/src/LogvolProcessor.cxx
with
6 additions
and
5 deletions
GeoModelTools/GeoModelXML/GeoModelXml/src/LogvolProcessor.cxx
+
6
−
5
View file @
a8943010
...
...
@@ -84,8 +84,8 @@ void LogvolProcessor::process(const DOMElement *element, GmxUtil &gmxUtil, GeoNo
XMLString
::
release
(
&
name_tmp
);
std
::
cout
<<
"LogVol name: "
<<
name
<<
std
::
endl
;
// get the value for the "named" option
,
//
to
add a GeoNameTag to the
tree if "true"
// get the value for the "named" option
;
//
if "true",
add a GeoNameTag to the
GeoModel tree
XMLCh
*
named_tmp
=
XMLString
::
transcode
(
"named"
);
char
*
toRelease2
=
XMLString
::
transcode
(
element
->
getAttribute
(
named_tmp
));
string
named
(
toRelease2
);
...
...
@@ -93,8 +93,8 @@ void LogvolProcessor::process(const DOMElement *element, GmxUtil &gmxUtil, GeoNo
XMLString
::
release
(
&
named_tmp
);
bool
isNamed
=
bool
(
named
.
compare
(
string
(
"true"
))
==
0
);
// get the value for the "identifier" option
,
//
to
add a GeoIdentifierTag to the
tree if "true"
// get the value for the "identifier" option
;
//
if "true",
add a GeoIdentifierTag to the
GeoModel tree
XMLCh
*
id_tmp
=
XMLString
::
transcode
(
"identifier"
);
char
*
toRelease3
=
XMLString
::
transcode
(
element
->
getAttribute
(
id_tmp
));
string
idStr
(
toRelease3
);
...
...
@@ -215,6 +215,7 @@ void LogvolProcessor::process(const DOMElement *element, GmxUtil &gmxUtil, GeoNo
name2release
=
XMLString
::
transcode
(
el
->
getNodeName
());
string
name
(
name2release
);
XMLString
::
release
(
&
name2release
);
msglog
<<
MSG
::
DEBUG
<<
"Processing child: '"
<<
name
<<
"'..."
<<
endmsg
;
gmxUtil
.
processorRegistry
.
find
(
name
)
->
process
(
el
,
gmxUtil
,
childrenAdd
);
}
}
...
...
@@ -260,7 +261,7 @@ void LogvolProcessor::process(const DOMElement *element, GmxUtil &gmxUtil, GeoNo
if
(
sensitive
||
(
alignable
.
compare
(
string
(
"true"
))
==
0
))
{
msglog
<<
MSG
::
DEBUG
<<
"Handling a FullPhysVol (alignable or sensitive) ..."
<<
endmsg
;
msglog
<<
MSG
::
DEBUG
<<
"Handling a FullPhysVol (
i.e., an '
alignable
'
or
'
sensitive
' volume
) ..."
<<
endmsg
;
GeoFullPhysVol
*
pv
=
new
GeoFullPhysVol
(
lv
);
if
(
is_envelope
)
GeoVolumeTagCatalog
::
VolumeTagCatalog
()
->
addTaggedVolume
(
"Envelope"
,
name
,
pv
);
for
(
GeoNodeList
::
iterator
node
=
childrenAdd
.
begin
();
node
!=
childrenAdd
.
end
();
++
node
)
{
...
...
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