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
#include "Element.h"

#include <string>
#include <set>

#include <iostream>

const element_set_t Element::elements = Element::init_elements();

Element::Element(std::string symbol)
{
  element_it = elements.find(symbol);
  if (element_it == elements.end()) {
    throw "Element not found";
  }
}

std::string Element::getName()
{
  return *element_it;
}

Commits for ChemEqBalancer/Element.cpp

Diff revisions: vs.
Revision Author Commited Message
2 Shaun Mon 24 Jan, 2011 23:32:14 +0000