23 m_label( a_node.name( ) ) {
26 std::string name( child.name( ) );
27 PhysicalQuantity *quantity;
29 if( name == PoPI_doubleChars ) {
30 quantity = new PQ_double( child ); }
32 quantity = new PQ_integer( child ); }
34 quantity = new PQ_fraction( child ); }
36 quantity = new PQ_string( child ); }
38 quantity = new PQ_shell( child ); }
42 push_back( quantity );
65 std::string indent2 = a_indent1 +
" ";
67 if( size( ) == 0 )
return;
68 std::string header = a_indent1 +
"<" + m_label +
">";
69 a_XMLList.push_back( std::move( header ) );
70 for( std::vector<PhysicalQuantity *>::const_iterator iter = begin( ); iter != end( ); ++iter )
71 (*iter)->toXMLList( a_XMLList, indent2 );