/**
* Utility to copy a file of a specified format from one place to another.
* This base class simply invokes the command support::copy().
/**
* Utility to copy a file of a specified format from one place to another.
* This base class simply invokes the command support::copy().
- copy(std::string const & from, std::string const & to) const
- {
- return do_copy(from, to, to);
- }
+ copy(support::FileName const & from, support::FileName const & to,
+ unsigned long int mode = (unsigned long int)-1) const;
- copy(std::string const & from, std::string const & to,
- std::string const & latex) const
+ copy(support::FileName const & from, support::FileName const & to,
+ std::string const & latex,
+ unsigned long int mode = (unsigned long int)-1) const
- rename(std::string const & from, std::string const & to) const
- {
- return do_rename(from, to, to);
- }
+ rename(support::FileName const & from, support::FileName const & to) const;
std::string const & latex) const
{
return do_rename(from, to, latex);
std::string const & latex) const
{
return do_rename(from, to, latex);
- do_copy(std::string const & from, std::string const & to,
- std::string const &) const;
+ do_copy(support::FileName const & from, support::FileName const & to,
+ std::string const &, unsigned long int mode) const;
- do_rename(std::string const & from, std::string const & to,
- std::string const &) const;
+ do_rename(support::FileName const & from, support::FileName const & to,
+ std::string const &) const;
* copied .fig file will require a transformation of the picture file
* reference if it is to be found by XFig.
*/
* copied .fig file will require a transformation of the picture file
* reference if it is to be found by XFig.
*/
* $$i is a placeholder for the name of the file to be moved,
* $$o is a placeholder for the name of the file after moving,
* $$l is a placeholder for the name of the file after moving,
* $$i is a placeholder for the name of the file to be moved,
* $$o is a placeholder for the name of the file after moving,
* $$l is a placeholder for the name of the file after moving,
- do_copy(std::string const & from, std::string const & to,
- std::string const & latex) const;
+ do_copy(support::FileName const & from, support::FileName const & to,
+ std::string const & latex, unsigned long int mode) const;
- do_rename(std::string const & from, std::string const & to,
- std::string const & latex) const;
+ do_rename(support::FileName const & from, support::FileName const & to,
+ std::string const & latex) const;