imutils-cpp
Loading...
Searching...
No Matches
paths.h
Go to the documentation of this file.
1//
2// Created by jonsnow on 07/02/22.
3//
4#pragma once
5#define PATH_H
6
7#include "filesystem"
8#include "bits/stdc++.h"
10/***************************************************************************/
17class Path {
18private:
23 std::vector<std::string> imageTypes = {".jpg", ".jpeg", ".png", ".bmp", ".tif", ".tiff"};
24public:
31 std::vector<std::string> listImages(std::string basePath, std::string contains = "");
39 std::vector<std::string>
40 listFiles(std::string basePath, std::vector<std::string> validExts = {}, std::string contains = ""
41 );
42};
The class helps in finding files in given dictionary and has two functions for the same.
Definition: paths.h:17
std::vector< std::string > listFiles(std::string basePath, std::vector< std::string > validExts={}, std::string contains="")
Utility for listing all the Files in directory with valid extensions and containing words if any.
Definition: paths.cpp:15
std::vector< std::string > listImages(std::string basePath, std::string contains="")
Utility for listing all the Images in directory.
Definition: paths.cpp:10