ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Person.hpp
(Generate patch)

Comparing Smersh/Person.hpp (file contents):
Revision 269 by Douglas Thrift, 2004-10-27T12:52:13-07:00 vs.
Revision 349 by douglas, 2004-12-16T18:15:34-08:00

# Line 18 | Line 18 | class Person
18   private:
19          static string driver, host, user, password, db;
20          string name;
21 <        vector<Person> multiple;
21 >        ext::Vector<Person> multiple;
22          void query(const string& sn);
23   public:
24          Person(const string& sn = "");
25          Person(const Person& person) : name(person.name) {}
26          ~Person() {}
27          static void configure();
28 <        bool isMultiple() const { return !multiple.empty(); }
29 <        vector<Person>::const_iterator beginMultiple() const { return
30 <                multiple.begin(); }
31 <        vector<Person>::const_iterator endMultiple() const { return multiple.end();
32 <        }
33 <        void clearMultiple() { multiple.clear(); }
28 >        bool isMultiple() const { return !multiple.IsEmpty(); }
29 >        const ext::Vector<Person>& getMultiple() const { return multiple; }
30 >        void clearMultiple() { multiple.Clear(); }
31          Person& operator=(const Person& person) { name = person.name; return *this; }
32          bool operator==(const Person& person) const { return name == person.name; }
33          bool operator<(const Person& person) const { return name < person.name; }
34   // friends:
35 <        friend ostream& operator<<(ostream& sout, const Person& person) { return
39 <                sout << person.name; }
35 >        friend ostream& operator<<(ostream& sout, const Person& person) { return sout << person.name; }
36   };
37  
38   #endif // _Person_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines