mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 16:01:05 +08:00
Added openAlpr support library
This commit is contained in:
30
src/openalpr/support/filesystem.h
Normal file
30
src/openalpr/support/filesystem.h
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#ifndef FILESYSTEM_H
|
||||
#define FILESYSTEM_H
|
||||
|
||||
|
||||
#ifdef WINDOWS
|
||||
#include "windows/dirent.h"
|
||||
#include "windows/utils.h"
|
||||
#include "windows/unistd_partial.h"
|
||||
#else
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
bool hasEnding (std::string const &fullString, std::string const &ending);
|
||||
bool DirectoryExists( const char* pzPath );
|
||||
bool fileExists( const char* pzPath );
|
||||
std::vector<std::string> getFilesInDir(const char* dirPath);
|
||||
|
||||
bool stringCompare( const std::string &left, const std::string &right );
|
||||
|
||||
|
||||
#endif // FILESYSTEM_H
|
Reference in New Issue
Block a user