40 std::string name( child.name( ) );
42 if( name == GIDI_axisChars ) {
43 m_axes.push_back( new Axis( child, a_setupInfo ) ); }
45 m_axes.push_back( new Grid( child, a_setupInfo, a_useSystem_strtod ) ); }
47 throw Exception(
"unknown axes sub-element" );
61 for( std::size_t i1 = 0; i1 < a_axes.
size( ); ++i1 ) {
65 m_axes.push_back(
new Axis( *
axis ) ); }
67 m_axes.push_back(
new Grid(
static_cast<Grid const &
>( *
axis ) ) );
77 for( std::size_t i1 = 0; i1 < m_axes.size( ); ++i1 )
delete m_axes[i1];
89 if(
this != &a_rhs ) {
92 for( std::size_t index = 0; index < a_rhs.
size( ); ++index ) {
93 auto axis = a_rhs[index];
95 m_axes.push_back(
new Axis( *
axis ) ); }
98 m_axes.push_back(
new Grid( *
grid ) );
115 if( m_axes.size( ) == 0 )
return;
120 for( std::vector<Axis *>::const_iterator iter = m_axes.begin( ); iter != m_axes.end( ); ++iter ) (*iter)->toXMLList( a_writeInfo, indent2 );
137 for(
auto labelAndUnit = a_labelsAndUnits.begin( ); labelAndUnit != a_labelsAndUnits.end( ); ++labelAndUnit, ++index ) {
138 axes.append(
new Axis( index, labelAndUnit->first, labelAndUnit->second ) );
static Axes makeAxes(std::vector< std::pair< std::string, std::string > > const &a_labelsAndUnits)
void toXMLList(GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Axes & operator=(Axes const &a_rhs)
void setMoniker(std::string const &a_moniker)
std::string const & moniker() const
void addNodeEnder(std::string const &a_moniker)
std::string incrementalIndent(std::string const &indent)
void addNodeStarter(std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
const axis_t axis_to_type< N >::axis