iphreeqc/classes/NumKeyword.h
David L Parkhurst 60a1544019 Copying new classes (cxx) and cpp files to src
Will remove cpp and header files and make phreeqc an external directory.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@785 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2006-02-16 00:21:39 +00:00

35 lines
863 B
C++

#if !defined(NUMKEYWORD_H_INCLUDED)
#define NUMKEYWORD_H_INCLUDED
#include "Parser.h"
#include <ostream> // std::ostream
#include <string> // std::string
class CNumKeyword
{
public:
CNumKeyword();
virtual ~CNumKeyword();
int get_n_user()const { return this->n_user; }
void set_n_user(int user) { this->n_user = user; }
int get_n_user_end()const { return this->n_user_end; }
void set_n_user_end(int user_end) { this->n_user_end = user_end; }
bool operator<(const CNumKeyword& key)const { return (this->n_user < key.n_user); }
virtual void dump_xml(std::ostream& os, unsigned int indent = 0)const;
void read_number_description(CParser& parser);
protected:
int n_user;
int n_user_end;
std::string description;
private:
void read_number_description(std::istream& is);
};
#endif // !defined(NUMKEYWORD_H_INCLUDED)