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), used_(true) {}
31 docstring const name() const {
35 docstring const email() const {
39 void used(bool u) const {
47 friend std::istream & operator>>(std::istream & os, Author & a);
62 int record(Author const & a);
64 void record(int id, Author const & a);
66 Author const & get(int id) const;
68 typedef std::map<int, Author> Authors;
70 Authors::const_iterator begin() const;
72 Authors::const_iterator end() const;
80 bool operator==(Author const & l, Author const & r);
82 std::ostream & operator<<(std::ostream & os, Author const & a);
84 std::istream & operator>>(std::istream & os, Author & a);