iphreeqc/Dictionary.h
David L Parkhurst d37ed2c6ae indented header files.
removed ^M from System.h





git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3169 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2008-10-31 15:32:53 +00:00

48 lines
765 B
C++

#if !defined(DICTIONARY_H_INCLUDED)
#define DICTIONARY_H_INCLUDED
#include <cassert> // assert
#include <map> // std::map
#include <string> // std::string
#include <list> // std::list
#include <vector> // std::vector
#include "Solution.h"
#include "NameDouble.h"
class cxxDictionary
{
public:
cxxDictionary();
~cxxDictionary();
void add_phreeqc();
int size()
{
return (int) stringkey.size();
}
int putString(std::string str);
int putString(char *str);
int string2int(std::string str);
int string2int(char *str);
std::string * int2string(int i);
char *int2char(int i);
protected:
std::map < std::string, int >stringkey;
std::map < int, std::string > intkey;
public:
};
#endif // !defined(DICTIONARY_H_INCLUDED)