mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 00:28:23 +01:00
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1645 1feff8c3-07ed-0310-ac33-dd36852eb9cd
47 lines
787 B
C++
47 lines
787 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)
|