4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
18 #include "support/std_string.h"
24 Author(string const & name, string const & email)
25 : name_(name), email_(email) {}
27 string const name() const {
31 string const email() const {
35 friend std::istream & operator>>(std::istream & os, Author & a);
48 int record(Author const & a);
50 void record(int id, Author const & a);
52 Author const & get(int id);
54 typedef std::map<int, Author> Authors;
56 Authors::const_iterator begin() const;
58 Authors::const_iterator end() const;
66 bool operator==(Author const & l, Author const & r);
68 std::ostream & operator<<(std::ostream & os, Author const & a);
70 std::istream & operator>>(std::istream & os, Author & a);