iphreeqc/Dictionary.h
Scott R Charlton 07d5fa7413 merged 3750-3846 of plusify; system.cxx and system.h need to be formated
removed char * and used std::string's and std::map's

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3847 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 01:49:56 +00:00

49 lines
802 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);
std::string & int2stdstring(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)