// Smersh // // Douglas Thrift // // $Id$ #ifndef _Person_hpp_ #define _Person_hpp_ #include "Smersh.hpp" #include #include #include class Person { private: static string driver, host, user, password, db; string name; ext::Vector multiple; void query(const string& sn); public: Person(const string& sn = ""); Person(const Person& person) : name(person.name) {} ~Person() {} static void configure(); bool isMultiple() const { return !multiple.IsEmpty(); } const ext::Vector& getMultiple() const { return multiple; } void clearMultiple() { multiple.Clear(); } Person& operator=(const Person& person) { name = person.name; return *this; } bool operator==(const Person& person) const { return name == person.name; } bool operator<(const Person& person) const { return name < person.name; } // friends: friend ostream& operator<<(ostream& sout, const Person& person) { return sout << person.name; } }; #endif // _Person_hpp_