LUMIERA.clone/src/lib/file.cpp
Ichthyostega c5292dd0dd Clean-up: get rid of boost::filesystem
Since C++17 we can use the std::filesystem instead (and we ''do use it'' indeed)
- relocate the `/lib/file.hpp` header
- adapt the self-discovery of the executable to using std::filesystem

Furthermore, some recherche regarding XVideo and Video Output
2025-04-27 23:54:21 +02:00

32 lines
905 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
File - collection of functions supporting unit testing
Copyright (C)
2009, Hermann Vosseler <Ichthyostega@web.de>
  **Lumiera** is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by the
  Free Software Foundation; either version 2 of the License, or (at your
  option) any later version. See the file COPYING for further details.
* *****************************************************************/
/** @file file.cpp
** Storage and implementation details for filesystem helpers.
** @todo 3/24 consider to establish some central location to define basic literals.
*/
#include "lib/file.hpp"
namespace std::filesystem {
const string UNIX_HOMEDIR_SYMBOL{"~"};
lib::Literal UNIX_HOMEDIR_ENV{"HOME"};
}
namespace util {
using fs::UNIX_HOMEDIR_SYMBOL;
using fs::UNIX_HOMEDIR_ENV;
}