This class is used to emulate the behavior of the procfs filesystem.
More...
#include <file_system_manager.hpp>
|
| static const std::regex | PROCFS_REGEX = std::regex(R"(^/proc/([0-9]+|self)/([^/]+)$)") |
| | This regex is used to check whether a file path is located inside the system procfs.
|
| |
This class is used to emulate the behavior of the procfs filesystem.
◆ ProcFSManager()
| arion::ProcFSManager::ProcFSManager |
( |
std::weak_ptr< Arion > |
arion | ) |
|
|
inline |
Builder for ProcFSManager instances.
- Parameters
-
| [in] | rion | The Arion instance used for emulation. |
◆ convert()
| std::string arion::ProcFSManager::convert |
( |
std::string |
path | ) |
|
Converts a procfs path into a rootfs path.
- Parameters
-
- Returns
- The converted rootfs path.
◆ initialize()
| static std::unique_ptr< ProcFSManager > arion::ProcFSManager::initialize |
( |
std::weak_ptr< Arion > |
arion | ) |
|
|
static |
◆ is_procfs_path()
| bool arion::ProcFSManager::is_procfs_path |
( |
std::string |
path | ) |
|
Checks whether the given path is located inside the system procfs.
- Parameters
-
| [in] | path | The path to check. |
- Returns
- True if the given path is located inside the system procfs.
◆ arion
| std::weak_ptr<Arion> arion::ProcFSManager::arion |
|
private |
The Arion instance used for emulation.
◆ PROCFS_REGEX
| const std::regex arion::ProcFSManager::PROCFS_REGEX = std::regex(R"(^/proc/([0-9]+|self)/([^/]+)$)") |
|
inlinestaticprivate |
This regex is used to check whether a file path is located inside the system procfs.
The documentation for this class was generated from the following file: