Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_documentation_1_10.cc
Go to the documentation of this file.
1
/*
2
# <<BEGIN-copyright>>
3
# Copyright 2019, Lawrence Livermore National Security, LLC.
4
# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5
# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6
# SPDX-License-Identifier: MIT
7
# <<END-copyright>>
8
*/
9
10
#include "
GIDI.hpp
"
11
12
namespace
GIDI
{
13
14
namespace
Documentation_1_10
{
15
16
#define GIDI_nameChars "name"
17
18
/*! \class Documentation
19
* This class supports storing **GNDS** 1.9 and 1.10 documentation.
20
*/
21
22
/*! \class Suite
23
* This is the GIDI::Suite class but with a different parse function.
24
*/
25
26
/* *********************************************************************************************************/
/**
27
***********************************************************************************************************/
28
29
Suite::Suite
( ) :
30
GIDI
::
Suite
(
GIDI_documentations_1_10_Chars
) {
31
32
}
33
34
/* *********************************************************************************************************/
/**
35
* Parse a GNDS 1.10 documentations node.
36
*
37
* @param a_node [in] The **HAPI::Node** to be parsed.
38
* @param a_setupInfo [in] Information create my the Protare constructor to help in parsing.
39
***********************************************************************************************************/
40
41
void
Suite::parse
(
HAPI::Node
const
&a_node,
SetupInfo
&a_setupInfo ) {
42
43
for
(
HAPI::Node
child = a_node.
first_child
( ); !child.
empty
( ); child.to_next_sibling( ) ) {
44
add
(
new
Documentation
( child, a_setupInfo,
this
) );
45
}
46
}
47
48
/*! \class Documentation
49
*/
50
51
/* *********************************************************************************************************/
/**
52
*
53
* @param a_node [in] The **HAPI::Node** to be parsed.
54
* @param a_setupInfo [in] Information create my the Protare constructor to help in parsing.
55
* @param a_parent [in] The parent GIDI::Suite.
56
* @return
57
***********************************************************************************************************/
58
59
Documentation::Documentation
(
HAPI::Node
const
&a_node,
LUPI_maybeUnused
SetupInfo
&a_setupInfo,
LUPI_maybeUnused
GIDI::Suite
*a_parent ) :
60
Form
(
GIDI_documentationChars
,
FormType
::
generic
, a_node.attribute_as_string(
GIDI_nameChars
) ) {
61
62
m_label = a_node.
attribute_as_string
(
GIDI_nameChars
);
63
m_text = std::string( a_node.
text
().
get
() );
64
}
65
66
}
67
68
}
GIDI.hpp
GIDI_documentationChars
#define GIDI_documentationChars
Definition
GIDI.hpp:175
GIDI_documentations_1_10_Chars
#define GIDI_documentations_1_10_Chars
Definition
GIDI.hpp:176
GIDI_nameChars
#define GIDI_nameChars
Definition
GIDI.hpp:195
LUPI_maybeUnused
#define LUPI_maybeUnused
Definition
LUPI_defines.hpp:16
GIDI::Documentation_1_10::Documentation
Definition
GIDI.hpp:3052
GIDI::Documentation_1_10::Documentation::Documentation
Documentation(HAPI::Node const &a_node, SetupInfo &a_setupInfo, GIDI::Suite *a_parent)
GIDI::Documentation_1_10::Suite::parse
void parse(HAPI::Node const &a_node, SetupInfo &a_setupInfo)
Definition
GIDI_documentation_1_10.cc:41
GIDI::Documentation_1_10::Suite::Suite
Suite()
Definition
GIDI_documentation_1_10.cc:29
GIDI::Form
Definition
GIDI.hpp:637
GIDI::SetupInfo
Definition
GIDI.hpp:594
GIDI::Suite
Definition
GIDI.hpp:2567
GIDI::Suite::add
void add(Form *a_form)
Definition
GIDI_suite.cc:132
HAPI::Node
Definition
HAPI.hpp:166
HAPI::Node::empty
bool empty() const
Definition
HAPI_Node.cc:150
HAPI::Node::attribute_as_string
std::string attribute_as_string(const char *a_name) const
Definition
HAPI.hpp:179
HAPI::Node::first_child
Node first_child() const
Definition
HAPI_Node.cc:82
HAPI::Node::text
Text text() const
Definition
HAPI_Node.cc:164
HAPI::Text::get
std::string const & get() const
Definition
HAPI.hpp:84
GIDI::Documentation_1_10
Definition
GIDI.hpp:68
GIDI
Definition
GIDI.hpp:32
GIDI::FormType
FormType
Definition
GIDI.hpp:118
GIDI::FormType::generic
@ generic
Definition
GIDI.hpp:118
geant4-v11.4.0
source
processes
hadronic
models
lend
src
GIDI_documentation_1_10.cc
Generated by
1.16.1