Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI::ExternalFile Class Reference

#include <GIDI.hpp>

Inheritance diagram for GIDI::ExternalFile:

Public Member Functions

 ExternalFile (std::string const &a_label, std::string const &a_path)
 ExternalFile (HAPI::Node const &a_node, SetupInfo &a_setupInfo, GIDI::Suite *a_parent)
 ~ExternalFile ()
std::string const & path () const
void toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Public Member Functions inherited from GIDI::Form
 Form (FormType a_type)
 Form (std::string const &a_moniker, FormType a_type, std::string const &a_label)
 Form (HAPI::Node const &a_node, SetupInfo &a_setupInfo, FormType a_type, Suite *a_suite=nullptr)
 Form (Form const &a_form)
virtual ~Form ()
Formoperator= (Form const &a_rhs)
Suiteparent () const
std::string const & label () const
void setLabel (std::string const &a_label)
virtual std::string actualMoniker () const
std::string const & keyName () const
void setKeyName (std::string const &a_keyName)
std::string const & keyValue () const
virtual void setKeyValue (std::string const &a_keyName) const
FormType type () const
Form const * sibling (std::string a_label) const
GUPI::AncestryfindInAncestry3 (LUPI_maybeUnused std::string const &a_item)
GUPI::Ancestry const * findInAncestry3 (LUPI_maybeUnused std::string const &a_item) const
std::string xlinkItemKey () const
Public Member Functions inherited from GUPI::Ancestry
 Ancestry (std::string const &a_moniker, std::string const &a_attribute="")
virtual ~Ancestry ()
Ancestryoperator= (Ancestry const &a_ancestry)
std::string const & moniker () const
void setMoniker (std::string const &a_moniker)
Ancestryancestor ()
Ancestry const * ancestor () const
void setAncestor (Ancestry *a_ancestor)
std::string attribute () const
Ancestryroot ()
Ancestry const * root () const
bool isChild (Ancestry *a_instance)
bool isParent (Ancestry *a_parent)
bool isRoot () const
AncestryfindInAncestry (std::string const &a_href)
Ancestry const * findInAncestry (std::string const &a_href) const
virtual AncestryfindInAncestry3 (std::string const &a_item)=0
virtual Ancestry const * findInAncestry3 (std::string const &a_item) const =0
virtual LUPI_HOST void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
std::string toXLink () const
void printXML () const

Additional Inherited Members

Static Public Member Functions inherited from GUPI::Ancestry
static std::string buildXLinkItemKey (std::string const &a_name, std::string const &a_key)

Detailed Description

This class represents the GNDS <externalFile> node.

Definition at line 3029 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ ExternalFile() [1/2]

GIDI::ExternalFile::ExternalFile ( std::string const & a_label,
std::string const & a_path )

Definition at line 22 of file GIDI_externalFile.cc.

22 :
24 m_path( a_path ) {
25
26}
#define GIDI_externalFileChars
Definition GIDI.hpp:173
Form(FormType a_type)
Definition GIDI_form.cc:25

Referenced by ExternalFile().

◆ ExternalFile() [2/2]

GIDI::ExternalFile::ExternalFile ( HAPI::Node const & a_node,
SetupInfo & a_setupInfo,
GIDI::Suite * a_parent )

◆ ~ExternalFile()

GIDI::ExternalFile::~ExternalFile ( )

Definition at line 43 of file GIDI_externalFile.cc.

43 {
44
45}

Member Function Documentation

◆ path()

std::string const & GIDI::ExternalFile::path ( ) const
inline

Definition at line 3039 of file GIDI.hpp.

3039{ return( m_path ); }

Referenced by toXMLList().

◆ toXMLList()

void GIDI::ExternalFile::toXMLList ( GUPI::WriteInfo & a_writeInfo,
std::string const & a_indent = "" ) const
virtual

Fills the argument a_writeInfo with the XML line that represent this.

Parameters
a_writeInfo[in/out] Instance containing incremental indentation and other information and stores the appended lines.
a_indent[in] The amount to indent this node.

Reimplemented from GUPI::Ancestry.

Definition at line 54 of file GIDI_externalFile.cc.

54 {
55
56 std::string attributes;
57
58 attributes = a_writeInfo.addAttribute( GIDI_labelChars, label( ) );
59 attributes += a_writeInfo.addAttribute( GIDI_pathChars, path( ) );
60
61 a_writeInfo.addNodeStarterEnder( a_indent, moniker( ), attributes );
62}
#define GIDI_pathChars
Definition GIDI.hpp:450
#define GIDI_labelChars
Definition GIDI.hpp:438
std::string const & path() const
Definition GIDI.hpp:3039
std::string const & label() const
Definition GIDI.hpp:658
std::string const & moniker() const
Definition GUPI.hpp:102
void addNodeStarterEnder(std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
Definition GUPI.hpp:57
std::string addAttribute(std::string const &a_name, std::string const &a_value) const
Definition GUPI.hpp:60

The documentation for this class was generated from the following files: