Helios++
Helios software for LiDAR simulations
FileUtils.h
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 #include <map>
6 
7 #include <util/typedef.h>
8 
14 class FileUtils{
15 public:
16  // *** CONSTANTS *** //
17  // ******************* //
21  static char const pathSeparator;
22 
23  // *** METHODS *** //
24  // ***************** //
31  static std::vector<std::string> handleFilePath(
32  std::map<std::string, ObjectT> & params
33  );
34 
48  static std::vector<std::string> getFilesByExpression(
49  std::string const pathExpression
50  );
51 
58  static void unzipFile(
59  std::string const inputPath,
60  std::string const outputPath
61  );
62 };
63 
static std::vector< std::string > handleFilePath(std::map< std::string, ObjectT > &params)
Handle a the filepath or efilepath argument from a map of parameters in the context of geometry loadi...
Definition: FileUtils.cpp:20
Class with util functions to work with files.
Definition: FileUtils.h:14
static void unzipFile(std::string const inputPath, std::string const outputPath)
Decompress a file generated through ZipSyncFileWriter.
Definition: FileUtils.cpp:72
static std::vector< std::string > getFilesByExpression(std::string const pathExpression)
Obtain the files which are referenced by the path expression.
Definition: FileUtils.cpp:48
static char const pathSeparator
Path separator constant.
Definition: FileUtils.h:21