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"
27 Author(docstring const & name, docstring const & email)
28 : name_(name), email_(email), used_(true) {}
30 docstring name() const { return name_; }
32 docstring email() const { return email_; }
34 void setUsed(bool u) const { used_ = u; }
36 bool used() const { return used_; }
38 friend std::istream & operator>>(std::istream & os, Author & a);
43 /// The author's email address
55 int record(Author const & a);
57 void record(int id, Author const & a);
59 Author const & get(int id) const;
61 typedef std::map<int, Author> Authors;
63 Authors::const_iterator begin() const;
65 Authors::const_iterator end() const;
74 bool operator==(Author const & l, Author const & r);
76 std::ostream & operator<<(std::ostream & os, Author const & a);
78 std::istream & operator>>(std::istream & os, Author & a);