Changes in src/periodentafel.hpp [6ac7ee:042f82]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/periodentafel.hpp
r6ac7ee r042f82 21 21 */ 22 22 class element { 23 24 double mass;//!< mass in g/mol25 double CovalentRadius;//!< covalent radius26 double VanDerWaalsRadius;//!< can-der-Waals radius27 int Z;//!< atomic number28 char name[64];//!< atom name, i.e. "Hydrogren"29 30 char period[8];//!< period: n quantum number31 char group[8];//!< group: l quantum number32 char block[8];//!< block: l quantum number33 element *previous;//!< previous item in list34 element *next;//!< next element in list35 int *sort;//!< sorc criteria36 int No;//!< number of element set on periodentafel::Output()37 double Valence;//!< number of valence electrons for this element38 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)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 41 42 43 42 element(); 43 ~element(); 44 44 45 46 47 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 48 49 49 private: 50 50 }; 51 51 … … 53 53 */ 54 54 class periodentafel { 55 56 57 element *end;//!< end of element list58 59 55 public: 56 element *start; //!< start of element list 57 element *end; //!< end of element list 58 char header1[MAXSTRINGSIZE]; //!< store first header line 59 char header2[MAXSTRINGSIZE]; //!< store second header line 60 60 61 62 61 periodentafel(); 62 ~periodentafel(); 63 63 64 65 66 67 68 element * FindElement(char *shorthand) const;69 70 71 72 bool LoadPeriodentafel(char *path = NULL);73 bool StorePeriodentafel(char *path = NULL) const;64 bool AddElement(element *pointer); 65 bool RemoveElement(element *pointer); 66 bool CleanupPeriodtable(); 67 element * FindElement(int Z); 68 element * FindElement(const char *shorthand) const; 69 element * AskElement(); 70 bool Output(ofstream *output) const; 71 bool Checkout(ofstream *output, const int *checkliste) const; 72 bool LoadPeriodentafel(const char *path); 73 bool StorePeriodentafel(const char *path) const; 74 74 75 75 private: 76 76 }; 77 77
Note:
See TracChangeset
for help on using the changeset viewer.