Last change
on this file since 60cbe5 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
|
Rev | Line | |
---|
[375dcf] | 1 | #ifndef PERIODENTAFEL_HPP_
|
---|
| 2 | #define PERIODENTAFEL_HPP_
|
---|
| 3 |
|
---|
| 4 | using namespace std;
|
---|
| 5 |
|
---|
| 6 | // include config.h
|
---|
| 7 | #ifdef HAVE_CONFIG_H
|
---|
| 8 | #include <config.h>
|
---|
| 9 | #endif
|
---|
| 10 |
|
---|
[4dca8e] | 11 | #include <iostream>
|
---|
[375dcf] | 12 |
|
---|
[4dca8e] | 13 | #include "defs.hpp"
|
---|
| 14 | #include "element.hpp"
|
---|
[375dcf] | 15 |
|
---|
[4dca8e] | 16 | // ====================================== class definitions =========================
|
---|
[e08f45] | 17 |
|
---|
[375dcf] | 18 |
|
---|
| 19 | /** Periodentafel is a list of all elements sorted by their atomic number.
|
---|
| 20 | */
|
---|
| 21 | class periodentafel {
|
---|
[a048fa] | 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
|
---|
[e08f45] | 27 |
|
---|
[a048fa] | 28 | periodentafel();
|
---|
| 29 | ~periodentafel();
|
---|
[e08f45] | 30 |
|
---|
[a048fa] | 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;
|
---|
[e08f45] | 41 |
|
---|
[a048fa] | 42 | private:
|
---|
[375dcf] | 43 | };
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | #endif /*PERIODENTAFEL_HPP_*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.