4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
26 /** \param filename the file in question. May have either a relative
28 \param buffer_path if \c filename has a relative path, generate
29 the absolute path using this.
31 void set(string const & filename, string const & buffer_path);
34 bool empty() const { return name_.empty(); }
36 bool saveAbsPath() const { return save_abs_path_; }
37 string const absFilename() const { return name_; }
38 /// \param buffer_path if empty, uses `pwd`
39 string const relFilename(string const & buffer_path = string()) const;
40 /// \param buf_path if empty, uses `pwd`
41 string const outputFilename(string const & buf_path = string()) const;
49 bool operator==(FileName const &, FileName const &);
50 bool operator!=(FileName const &, FileName const &);
53 } // namespace support