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.
15 #include "support/docstring.h"
28 Author(docstring const & name, docstring const & email)
29 : name_(name), email_(email) {}
31 docstring const name() const {
35 docstring const email() const {
39 friend std::istream & operator>>(std::istream & os, Author & a);
52 int record(Author const & a);
54 void record(int id, Author const & a);
56 Author const & get(int id) const;
58 typedef std::map<int, Author> Authors;
60 Authors::const_iterator begin() const;
62 Authors::const_iterator end() const;
70 bool operator==(Author const & l, Author const & r);
72 std::ostream & operator<<(std::ostream & os, Author const & a);
74 std::istream & operator>>(std::istream & os, Author & a);