mars_lib 0.1.0.2abe2576fe7f
Modular and Robust Sensor-Fusion
Loading...
Searching...
No Matches
filesystem.h
Go to the documentation of this file.
1// Copyright (C) 2021 Christian Brommer, Control of Networked Systems, University of Klagenfurt, Austria.
2//
3// All rights reserved.
4//
5// This software is licensed under the terms of the BSD-2-Clause-License with
6// no commercial use allowed, the full terms of which are made available
7// in the LICENSE file. No license in patents is granted.
8//
9// You can contact the author at <christian.brommer@ieee.org>
10
11#ifndef FILESYSTEM_H
12#define FILESYSTEM_H
13
14#include <string>
15
16namespace mars
17{
24{
25public:
27
33 static bool IsFile(const std::string& name);
34
40 static bool IsDir(const std::string& name);
41
47 static bool MakeDir(const std::string& name);
48};
49} // namespace mars
50
51#endif // FILESYSTEM_H
The filesystem class implements a wrapper for file or directory interaction.
Definition filesystem.h:24
static bool IsFile(const std::string &name)
filesystem::IsFile Check if the given path results in a file
static bool IsDir(const std::string &name)
filesystem::IsDir Check if the given path results in an directory
static bool MakeDir(const std::string &name)
filesystem::MakeDir Create a directory if it does not exist
Definition buffer.h:27