Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/periodentafel.cpp

    rf34c23 r389cc8  
    125125 * \return pointer to element
    126126 */
    127 element * const periodentafel::FindElement(const char * const shorthand) const
     127element * const periodentafel::FindElement(const string &shorthand) const
    128128{
    129129  element *res = 0;
     
    205205    for(const_iterator iter=elements.begin(); iter !=elements.end();++iter){
    206206      result = result && (*iter).second->Output(output);
    207     }
    208     return result;
    209   } else
    210     return false;
    211 };
    212 
    213 /** Prints period table to given stream.
    214  * \param *output output stream
    215  * \param *checkliste elements table for this molecule
    216  */
    217 bool periodentafel::Checkout(ostream * const output, const int * const checkliste) const
    218 {
    219   bool result = true;
    220   int No = 1;
    221 
    222   if (output != NULL) {
    223     *output << "# Ion type data (PP = PseudoPotential, Z = atomic number)" << endl;
    224     *output << "#Ion_TypeNr.\tAmount\tZ\tRGauss\tL_Max(PP)L_Loc(PP)IonMass\t# chemical name, symbol" << endl;
    225     for(const_iterator iter=elements.begin(); iter!=elements.end();++iter){
    226       if (((*iter).first < MAX_ELEMENTS) && (checkliste[(*iter).first])) {
    227         (*iter).second->No = No;
    228         result = result && (*iter).second->Checkout(output, No++, checkliste[(*iter).first]);
    229       }
    230207    }
    231208    return result;
Note: See TracChangeset for help on using the changeset viewer.