Subversion Repository Public Repository

ChemEqBalancer

This repository has no backups
This repository's network speed is throttled to 100KB/sec

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
30
31
32
#ifndef Element_H
#define Element_H

#include <iostream>
#include <set>
#include <string>

typedef std::set<std::string> element_set_t;

class Element
{
  static element_set_t init_elements()
  {
    std::string element_list[] =
      #include "elements_rawlist.txt"
    ;
    element_set_t s(element_list, element_list+(sizeof element_list / sizeof *element_list));
    return s;
  }
  static const element_set_t elements;

  element_set_t::iterator element_it;
public:
  Element(std::string symbol);
  std::string getName();
  Element* getElement(std::string symbol);
protected:
private:
  static bool init();
};

#endif // Element_H

Commits for ChemEqBalancer/trunk/Element.h

Diff revisions: vs.
Revision Author Commited Message
4 Diff Diff ShaunOfTheLive picture ShaunOfTheLive Thu 14 Jul, 2011 01:52:50 +0000

moved files to trunk

2 Shaun Mon 24 Jan, 2011 23:32:14 +0000