source: molecuilder/src/periodentafel.hpp@ dcbdf2

Last change on this file since dcbdf2 was 4dca8e, checked in by Frederik Heber <heber@…>, 16 years ago

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

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#ifndef PERIODENTAFEL_HPP_
2#define PERIODENTAFEL_HPP_
3
4using namespace std;
5
6// include config.h
7#ifdef HAVE_CONFIG_H
8#include <config.h>
9#endif
10
11#include <iostream>
12
13#include "defs.hpp"
14#include "element.hpp"
15
16// ====================================== class definitions =========================
17
18
19/** Periodentafel is a list of all elements sorted by their atomic number.
20 */
21class periodentafel {
22 public:
23 element *start; //!< start of element list
24 element *end; //!< end of element list
25 char header1[MAXSTRINGSIZE]; //!< store first header line
26 char header2[MAXSTRINGSIZE]; //!< store second header line
27
28 periodentafel();
29 ~periodentafel();
30
31 bool AddElement(element *pointer);
32 bool RemoveElement(element *pointer);
33 bool CleanupPeriodtable();
34 element * FindElement(int Z);
35 element * FindElement(const char *shorthand) const;
36 element * AskElement();
37 bool Output(ofstream *output) const;
38 bool Checkout(ofstream *output, const int *checkliste) const;
39 bool LoadPeriodentafel(const char *path);
40 bool StorePeriodentafel(const char *path) const;
41
42 private:
43};
44
45
46#endif /*PERIODENTAFEL_HPP_*/
Note: See TracBrowser for help on using the repository browser.