Ignore:
Timestamp:
Aug 3, 2009, 3:09:12 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
eb167d
Parents:
e78824
Message:

definitions for class element and verbose moved to their own header files and reducing contents of helpers.hpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/periodentafel.hpp

    re78824 r4dca8e  
    33
    44using namespace std;
    5 
    6 #include "defs.hpp"
    7 #include "helpers.hpp"
    85
    96// include config.h
     
    129#endif
    1310
     11#include <iostream>
     12
     13#include "defs.hpp"
     14#include "element.hpp"
     15
    1416// ====================================== class definitions =========================
    1517
    16 class element;
    17 class periodentafel;
    18 
    19 /** Chemical element.
    20  * Class incorporates data for a certain chemical element to be referenced from atom class.
    21  */
    22 class element {
    23   public:
    24     double mass;    //!< mass in g/mol
    25     double CovalentRadius;  //!< covalent radius
    26     double VanDerWaalsRadius;  //!< can-der-Waals radius
    27     int Z;          //!< atomic number
    28     char name[64];  //!< atom name, i.e. "Hydrogren"
    29     char symbol[3]; //!< short form of the atom, i.e. "H"
    30     char period[8];    //!< period: n quantum number
    31     char group[8];    //!< group: l quantum number
    32     char block[8];    //!< block: l quantum number
    33     element *previous;  //!< previous item in list
    34     element *next;  //!< next element in list
    35     int *sort;      //!< sorc criteria
    36     int No;         //!< number of element set on periodentafel::Output()
    37     double Valence;   //!< number of valence electrons for this element
    38     int NoValenceOrbitals;  //!< number of valence orbitals, used for determining bond degree in molecule::CreateConnectmatrix()
    39     double HBondDistance[NDIM]; //!< distance in Angstrom of this element to hydrogen  (for single, double and triple bonds)
    40     double HBondAngle[NDIM];     //!< typical angle for one, two, three bonded hydrogen (in degrees)
    41 
    42   element();
    43   ~element();
    44 
    45   //> print element entries to screen
    46   bool Output(ofstream *out) const;
    47   bool Checkout(ofstream *out, const int No, const int NoOfAtoms) const;
    48 
    49   private:
    50 };
    5118
    5219/** Periodentafel is a list of all elements sorted by their atomic number.
Note: See TracChangeset for help on using the changeset viewer.