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

#include <GUPI.hpp>

Public Member Functions

 WriteInfo (std::string const &a_incrementalIndent=" ", int a_valuesPerLine=100, std::string const &a_sep=" ")
std::string incrementalIndent (std::string const &indent)
void push_back (std::string const &a_line)
void addNodeStarter (std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
void addNodeStarterEnder (std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
void addNodeEnder (std::string const &a_moniker)
std::string addAttribute (std::string const &a_name, std::string const &a_value) const
std::string nodeStarter (std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
std::string nodeEnder (std::string const &a_moniker)
void print ()
void clear ()

Public Attributes

std::list< std::string > m_lines
std::string m_incrementalIndent
int m_valuesPerLine
std::string m_sep

Detailed Description

Definition at line 42 of file GUPI.hpp.

Constructor & Destructor Documentation

◆ WriteInfo()

GUPI::WriteInfo::WriteInfo ( std::string const & a_incrementalIndent = "  ",
int a_valuesPerLine = 100,
std::string const & a_sep = " " )
Parameters
a_incrementalIndent[in] The incremental amount of indentation a node adds to a sub-nodes indentation.
a_valuesPerLine[in] The maximum number of integer or float values that are written per line before a new line is created.
a_sep[in] The separation character to use between integer and float values in a list.

Definition at line 249 of file GUPI_ancestry.cc.

249 :
250 m_incrementalIndent( a_incrementalIndent ),
251 m_valuesPerLine( a_valuesPerLine ),
252 m_sep( a_sep ) {
253
254}
std::string m_incrementalIndent
Definition GUPI.hpp:46
int m_valuesPerLine
Definition GUPI.hpp:47
std::string m_sep
Definition GUPI.hpp:48

Member Function Documentation

◆ addAttribute()

std::string GUPI::WriteInfo::addAttribute ( std::string const & a_name,
std::string const & a_value ) const
inline

Definition at line 60 of file GUPI.hpp.

60{ return( " " + a_name + "=\"" + a_value + "\"" ); }

Referenced by GIDI::Styles::Base::baseXMLAttributes(), GIDI::doublesToXMLList(), GIDI::ACE_URR::IncidentEnergy::toXMLList(), GIDI::ACE_URR::ProbabilityTable::toXMLList(), GIDI::Axis::toXMLList(), GIDI::AxisDomain::toXMLList(), GIDI::DelayedNeutron::toXMLList(), GIDI::Distributions::CoulombPlusNuclearElastic::toXMLList(), GIDI::Distributions::LLNLLegendre::toXMLList(), GIDI::Distributions::Reference3d::toXMLList(), GIDI::ExternalFile::toXMLList(), GIDI::FlattenedArrayData::toXMLList(), GIDI::Flux::toXMLList(), GIDI::Functions::FissionEnergyRelease::toXMLList(), GIDI::Functions::Reference1d::toXMLList(), GIDI::Grid::toXMLList(), GIDI::Group::toXMLList(), GIDI::Map::Import::toXMLList(), GIDI::Map::Map::toXMLList(), GIDI::Map::Protare::toXMLList(), GIDI::Map::TNSL::toXMLList(), GIDI::OutputChannel::toXMLList(), GIDI::PhysicalQuantity::toXMLList(), GIDI::Product::toXMLList(), GIDI::ProtareSingle::toXMLList(), GIDI::Reaction::toXMLList(), GIDI::Styles::CoulombPlusNuclearElasticMuCutoff::toXMLList(), GIDI::Styles::Evaluated::toXMLList(), GIDI::Styles::HeatedMultiGroup::toXMLList(), GIDI::Styles::MultiGroup::toXMLList(), GIDI::Styles::SnElasticUpScatter::toXMLList(), GIDI::Sums::CrossSectionSum::toXMLList(), GIDI::Sums::MultiplicitySum::toXMLList(), GIDI::Sums::Summand::Base::toXMLList(), GIDI::Table::Column::toXMLList(), GIDI::Table::Data::toXMLList(), GIDI::Table::Table::toXMLList(), GIDI::TargetInfo::ChemicalElement::toXMLList(), GIDI::TargetInfo::Nuclide::toXMLList(), GIDI::Transportable::toXMLList(), GIDI::Functions::Constant1d::toXMLList_func(), GIDI::Functions::DiscreteGamma2d::toXMLList_func(), GIDI::Functions::Gridded1d::toXMLList_func(), GIDI::Functions::Legendre1d::toXMLList_func(), GIDI::Functions::Polynomial1d::toXMLList_func(), GIDI::Functions::PrimaryGamma2d::toXMLList_func(), GIDI::Functions::Recoil2d::toXMLList_func(), GIDI::Functions::Regions1d::toXMLList_func(), GIDI::Functions::Regions2d::toXMLList_func(), GIDI::Functions::ResonancesWithBackground1d::toXMLList_func(), GIDI::Functions::Unspecified1d::toXMLList_func(), GIDI::Functions::URR_probabilityTables1d::toXMLList_func(), GIDI::Functions::Xs_pdf_cdf1d::toXMLList_func(), GIDI::Functions::XYs1d::toXMLList_func(), GIDI::Functions::XYs2d::toXMLList_func(), GIDI::Functions::XYs3d::toXMLList_func(), GIDI::Functions::Ys1d::toXMLList_func(), and GIDI::Distributions::Distribution::toXMLNodeStarter().

◆ addNodeEnder()

void GUPI::WriteInfo::addNodeEnder ( std::string const & a_moniker)
inline

Definition at line 59 of file GUPI.hpp.

59{ m_lines.back( ) += "</" + a_moniker + ">"; }
std::list< std::string > m_lines
Definition GUPI.hpp:45

Referenced by GIDI::doublesToXMLList(), GIDI::energy2dToXMLList(), GIDI::intsToXMLList(), GIDI::ACE_URR::IncidentEnergy::toXMLList(), GIDI::ACE_URR::ProbabilityTable::toXMLList(), GIDI::Axes::toXMLList(), GIDI::DelayedNeutron::toXMLList(), GIDI::Distributions::AngularEnergy::toXMLList(), GIDI::Distributions::AngularEnergyMC::toXMLList(), GIDI::Distributions::AngularTwoBody::toXMLList(), GIDI::Distributions::EnergyAngular::toXMLList(), GIDI::Distributions::EnergyAngularMC::toXMLList(), GIDI::Distributions::KalbachMann::toXMLList(), GIDI::Distributions::LLNLAngularEnergy::toXMLList(), GIDI::Distributions::MultiGroup3d::toXMLList(), GIDI::Distributions::Uncorrelated::toXMLList(), GIDI::Distributions::Unspecified::toXMLList(), GIDI::FissionFragmentData::toXMLList(), GIDI::FlattenedArrayData::toXMLList(), GIDI::Flux::toXMLList(), GIDI::Functions::FissionEnergyRelease::toXMLList(), GIDI::Functions::Gridded2d::toXMLList(), GIDI::Functions::Gridded3d::toXMLList(), GIDI::Grid::toXMLList(), GIDI::Group::toXMLList(), GIDI::Map::Map::toXMLList(), GIDI::OutputChannel::toXMLList(), GIDI::Product::toXMLList(), GIDI::ProtareSingle::toXMLList(), GIDI::Reaction::toXMLList(), GIDI::Styles::AngularDistributionReconstructed::toXMLList(), GIDI::Styles::AverageProductData::toXMLList(), GIDI::Styles::CoulombPlusNuclearElasticMuCutoff::toXMLList(), GIDI::Styles::CrossSectionReconstructed::toXMLList(), GIDI::Styles::Evaluated::toXMLList(), GIDI::Styles::GriddedCrossSection::toXMLList(), GIDI::Styles::Heated::toXMLList(), GIDI::Styles::HeatedMultiGroup::toXMLList(), GIDI::Styles::MonteCarlo_cdf::toXMLList(), GIDI::Styles::MultiGroup::toXMLList(), GIDI::Styles::Realization::toXMLList(), GIDI::Styles::SnElasticUpScatter::toXMLList(), GIDI::Suite::toXMLList(), GIDI::Sums::CrossSectionSum::toXMLList(), GIDI::Sums::MultiplicitySum::toXMLList(), GIDI::Sums::Summands::toXMLList(), GIDI::Sums::Sums::toXMLList(), GIDI::Table::Data::toXMLList(), GIDI::Table::Table::toXMLList(), GIDI::TargetInfo::ChemicalElement::toXMLList(), GIDI::TargetInfo::IsotopicAbundances::toXMLList(), GIDI::TargetInfo::TargetInfo::toXMLList(), GIDI::Transportable::toXMLList(), GUPI::Suite::toXMLList(), GIDI::Functions::Constant1d::toXMLList_func(), GIDI::Functions::DiscreteGamma2d::toXMLList_func(), GIDI::Functions::Evaporation2d::toXMLList_func(), GIDI::Functions::GeneralEvaporation2d::toXMLList_func(), GIDI::Functions::Gridded1d::toXMLList_func(), GIDI::Functions::Legendre1d::toXMLList_func(), GIDI::Functions::MadlandNix2d::toXMLList_func(), GIDI::Functions::Polynomial1d::toXMLList_func(), GIDI::Functions::PrimaryGamma2d::toXMLList_func(), GIDI::Functions::Regions1d::toXMLList_func(), GIDI::Functions::Regions2d::toXMLList_func(), GIDI::Functions::ResonanceBackground1d::toXMLList_func(), GIDI::Functions::ResonanceBackgroundRegion1d::toXMLList_func(), GIDI::Functions::ResonancesWithBackground1d::toXMLList_func(), GIDI::Functions::SimpleMaxwellianFission2d::toXMLList_func(), GIDI::Functions::Unspecified1d::toXMLList_func(), GIDI::Functions::URR_probabilityTables1d::toXMLList_func(), GIDI::Functions::Watt2d::toXMLList_func(), GIDI::Functions::XYs1d::toXMLList_func(), GIDI::Functions::XYs2d::toXMLList_func(), GIDI::Functions::XYs3d::toXMLList_func(), and GIDI::Functions::Ys1d::toXMLList_func().

◆ addNodeStarter()

void GUPI::WriteInfo::addNodeStarter ( std::string const & indent,
std::string const & a_moniker,
std::string const & a_attributes = "" )
inline

Definition at line 55 of file GUPI.hpp.

55 {
56 m_lines.push_back( indent + "<" + a_moniker + a_attributes + ">" ); }

Referenced by GIDI::energy2dToXMLList(), GIDI::intsToXMLList(), GIDI::ACE_URR::IncidentEnergy::toXMLList(), GIDI::ACE_URR::ProbabilityTable::toXMLList(), GIDI::Axes::toXMLList(), GIDI::DelayedNeutron::toXMLList(), GIDI::Distributions::AngularEnergyMC::toXMLList(), GIDI::Distributions::EnergyAngularMC::toXMLList(), GIDI::Distributions::LLNLAngularEnergy::toXMLList(), GIDI::Distributions::Uncorrelated::toXMLList(), GIDI::FissionFragmentData::toXMLList(), GIDI::FlattenedArrayData::toXMLList(), GIDI::Flux::toXMLList(), GIDI::Functions::FissionEnergyRelease::toXMLList(), GIDI::Functions::Gridded2d::toXMLList(), GIDI::Functions::Gridded3d::toXMLList(), GIDI::Grid::toXMLList(), GIDI::Group::toXMLList(), GIDI::Map::Map::toXMLList(), GIDI::OutputChannel::toXMLList(), GIDI::Product::toXMLList(), GIDI::ProtareSingle::toXMLList(), GIDI::Reaction::toXMLList(), GIDI::Styles::AngularDistributionReconstructed::toXMLList(), GIDI::Styles::AverageProductData::toXMLList(), GIDI::Styles::CoulombPlusNuclearElasticMuCutoff::toXMLList(), GIDI::Styles::CrossSectionReconstructed::toXMLList(), GIDI::Styles::Evaluated::toXMLList(), GIDI::Styles::GriddedCrossSection::toXMLList(), GIDI::Styles::Heated::toXMLList(), GIDI::Styles::HeatedMultiGroup::toXMLList(), GIDI::Styles::MonteCarlo_cdf::toXMLList(), GIDI::Styles::MultiGroup::toXMLList(), GIDI::Styles::Realization::toXMLList(), GIDI::Styles::SnElasticUpScatter::toXMLList(), GIDI::Sums::CrossSectionSum::toXMLList(), GIDI::Sums::MultiplicitySum::toXMLList(), GIDI::Sums::Summands::toXMLList(), GIDI::Sums::Sums::toXMLList(), GIDI::Table::Data::toXMLList(), GIDI::Table::Table::toXMLList(), GIDI::TargetInfo::ChemicalElement::toXMLList(), GIDI::TargetInfo::IsotopicAbundances::toXMLList(), GIDI::TargetInfo::TargetInfo::toXMLList(), GIDI::Transportable::toXMLList(), GIDI::Functions::Constant1d::toXMLList_func(), GIDI::Functions::DiscreteGamma2d::toXMLList_func(), GIDI::Functions::Evaporation2d::toXMLList_func(), GIDI::Functions::GeneralEvaporation2d::toXMLList_func(), GIDI::Functions::Gridded1d::toXMLList_func(), GIDI::Functions::Legendre1d::toXMLList_func(), GIDI::Functions::MadlandNix2d::toXMLList_func(), GIDI::Functions::Polynomial1d::toXMLList_func(), GIDI::Functions::PrimaryGamma2d::toXMLList_func(), GIDI::Functions::Regions1d::toXMLList_func(), GIDI::Functions::Regions2d::toXMLList_func(), GIDI::Functions::ResonanceBackground1d::toXMLList_func(), GIDI::Functions::ResonanceBackgroundRegion1d::toXMLList_func(), GIDI::Functions::ResonancesWithBackground1d::toXMLList_func(), GIDI::Functions::SimpleMaxwellianFission2d::toXMLList_func(), GIDI::Functions::Unspecified1d::toXMLList_func(), GIDI::Functions::URR_probabilityTables1d::toXMLList_func(), GIDI::Functions::Watt2d::toXMLList_func(), GIDI::Functions::XYs1d::toXMLList_func(), GIDI::Functions::XYs2d::toXMLList_func(), GIDI::Functions::XYs3d::toXMLList_func(), GIDI::Functions::Ys1d::toXMLList_func(), and GIDI::Distributions::Distribution::toXMLNodeStarter().

◆ addNodeStarterEnder()

◆ clear()

void GUPI::WriteInfo::clear ( )
inline

Clears the contents of m_lines.

Definition at line 67 of file GUPI.hpp.

◆ incrementalIndent()

std::string GUPI::WriteInfo::incrementalIndent ( std::string const & indent)
inline

Definition at line 52 of file GUPI.hpp.

52{ return( indent + m_incrementalIndent ); }

Referenced by GIDI::doublesToXMLList(), GIDI::energy2dToXMLList(), GIDI::ACE_URR::IncidentEnergy::toXMLList(), GIDI::ACE_URR::ProbabilityTable::toXMLList(), GIDI::Axes::toXMLList(), GIDI::Axis::toXMLList(), GIDI::DelayedNeutron::toXMLList(), GIDI::Distributions::AngularEnergy::toXMLList(), GIDI::Distributions::AngularEnergyMC::toXMLList(), GIDI::Distributions::AngularTwoBody::toXMLList(), GIDI::Distributions::EnergyAngular::toXMLList(), GIDI::Distributions::EnergyAngularMC::toXMLList(), GIDI::Distributions::KalbachMann::toXMLList(), GIDI::Distributions::LLNLAngularEnergy::toXMLList(), GIDI::Distributions::MultiGroup3d::toXMLList(), GIDI::Distributions::Uncorrelated::toXMLList(), GIDI::FissionFragmentData::toXMLList(), GIDI::FlattenedArrayData::toXMLList(), GIDI::Flux::toXMLList(), GIDI::Functions::FissionEnergyRelease::toXMLList(), GIDI::Functions::Gridded2d::toXMLList(), GIDI::Functions::Gridded3d::toXMLList(), GIDI::Grid::toXMLList(), GIDI::Group::toXMLList(), GIDI::Map::Map::toXMLList(), GIDI::OutputChannel::toXMLList(), GIDI::Product::toXMLList(), GIDI::ProtareSingle::toXMLList(), GIDI::Reaction::toXMLList(), GIDI::Styles::AngularDistributionReconstructed::toXMLList(), GIDI::Styles::AverageProductData::toXMLList(), GIDI::Styles::CrossSectionReconstructed::toXMLList(), GIDI::Styles::Evaluated::toXMLList(), GIDI::Styles::GriddedCrossSection::toXMLList(), GIDI::Styles::Heated::toXMLList(), GIDI::Styles::HeatedMultiGroup::toXMLList(), GIDI::Styles::MultiGroup::toXMLList(), GIDI::Suite::toXMLList(), GIDI::Sums::CrossSectionSum::toXMLList(), GIDI::Sums::MultiplicitySum::toXMLList(), GIDI::Sums::Summands::toXMLList(), GIDI::Sums::Sums::toXMLList(), GIDI::Table::Column::toXMLList(), GIDI::Table::Table::toXMLList(), GIDI::TargetInfo::ChemicalElement::toXMLList(), GIDI::TargetInfo::IsotopicAbundances::toXMLList(), GIDI::TargetInfo::TargetInfo::toXMLList(), GIDI::Transportable::toXMLList(), GUPI::Suite::toXMLList(), GIDI::Functions::Constant1d::toXMLList_func(), GIDI::Functions::DiscreteGamma2d::toXMLList_func(), GIDI::Functions::Evaporation2d::toXMLList_func(), GIDI::Functions::GeneralEvaporation2d::toXMLList_func(), GIDI::Functions::Gridded1d::toXMLList_func(), GIDI::Functions::Legendre1d::toXMLList_func(), GIDI::Functions::MadlandNix2d::toXMLList_func(), GIDI::Functions::Polynomial1d::toXMLList_func(), GIDI::Functions::PrimaryGamma2d::toXMLList_func(), GIDI::Functions::Regions1d::toXMLList_func(), GIDI::Functions::Regions2d::toXMLList_func(), GIDI::Functions::ResonanceBackground1d::toXMLList_func(), GIDI::Functions::ResonanceBackgroundRegion1d::toXMLList_func(), GIDI::Functions::ResonancesWithBackground1d::toXMLList_func(), GIDI::Functions::SimpleMaxwellianFission2d::toXMLList_func(), GIDI::Functions::Unspecified1d::toXMLList_func(), GIDI::Functions::URR_probabilityTables1d::toXMLList_func(), GIDI::Functions::Watt2d::toXMLList_func(), GIDI::Functions::XYs1d::toXMLList_func(), GIDI::Functions::XYs2d::toXMLList_func(), GIDI::Functions::XYs3d::toXMLList_func(), and GIDI::Functions::Ys1d::toXMLList_func().

◆ nodeEnder()

std::string GUPI::WriteInfo::nodeEnder ( std::string const & a_moniker)
inline

Definition at line 64 of file GUPI.hpp.

64{ return( "</" + a_moniker + ">" ); }

Referenced by GIDI::nodeWithValuesToDoubles(), and GIDI::Functions::Xs_pdf_cdf1d::toXMLList_func().

◆ nodeStarter()

std::string GUPI::WriteInfo::nodeStarter ( std::string const & indent,
std::string const & a_moniker,
std::string const & a_attributes = "" )
inline

Definition at line 62 of file GUPI.hpp.

63 { return( indent + "<" + a_moniker + a_attributes + ">" ); }

Referenced by GIDI::doublesToXMLList(), GIDI::nodeWithValuesToDoubles(), and GIDI::Functions::Xs_pdf_cdf1d::toXMLList_func().

◆ print()

void GUPI::WriteInfo::print ( )

Prints to contents the this to std::cout.

Definition at line 260 of file GUPI_ancestry.cc.

260 {
261
262 for( auto line = m_lines.begin( ); line != m_lines.end( ); ++line ) std::cout << *line << std::endl;
263}

◆ push_back()

Member Data Documentation

◆ m_incrementalIndent

std::string GUPI::WriteInfo::m_incrementalIndent

Definition at line 46 of file GUPI.hpp.

Referenced by incrementalIndent(), and WriteInfo().

◆ m_lines

◆ m_sep

std::string GUPI::WriteInfo::m_sep

Definition at line 48 of file GUPI.hpp.

Referenced by GIDI::doublesToXMLList(), GIDI::intsToXMLList(), and WriteInfo().

◆ m_valuesPerLine

int GUPI::WriteInfo::m_valuesPerLine

Definition at line 47 of file GUPI.hpp.

Referenced by GIDI::doublesToXMLList(), and WriteInfo().


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