summaryrefslogtreecommitdiff
path: root/cad/plugins/CoNTub/src/TabPe.h
blob: cd98e7146d2dacbf3f19ce5b744ae5be2be113ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
/* $Id$ */

#ifndef TABPE_H_INCLUDED
#define TABPE_H_INCLUDED

#include "String.h"

/*
 * There is never a need for more than one periodic table in any
 * program run. The periodicTable() function provides a pointer to
 * an instance of the periodic table, and that's the right thing
 * to use.
 */

class tabPe
{
    String *simbolo;
    double *sz, *en2, *en3;
 public:
    double *en1;
    tabPe();  // only to be called from tabPe_getInstance()
    String getSimbolo (int t);
    double getSize (int t);
};

tabPe *periodicTable(void);

#endif