ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Extract.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
12 namespace cloudViewer {
13 namespace utility {
14 
18 bool IsSupportedCompressedFilePath(const std::string& file_path);
19 
24 void Extract(const std::string& file_path, const std::string& extract_dir);
25 
26 } // namespace utility
27 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
ExtractZIP.h
cloudViewer::utility::filesystem::DirectoryExists
bool DirectoryExists(const std::string &directory)
Definition: FileSystem.cpp:473
FileSystem.h
cloudViewer::utility::filesystem::GetFileExtensionInLowerCase
std::string GetFileExtensionInLowerCase(const std::string &filename)
Definition: FileSystem.cpp:281
format
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
cloudViewer::utility::filesystem::MakeDirectoryHierarchy
bool MakeDirectoryHierarchy(const std::string &directory)
Definition: FileSystem.cpp:499
cloudViewer::utility::file_extension_to_extract_function
static const std::unordered_map< std::string, std::function< void(const std::string &, const std::string &)> > file_extension_to_extract_function
Definition: Extract.cpp:23
cloudViewer::utility::filesystem::FileExists
bool FileExists(const std::string &filename)
Definition: FileSystem.cpp:524
cloudViewer::utility::IsSupportedCompressedFilePath
bool IsSupportedCompressedFilePath(const std::string &file_path)
Returns true if the file is a supported compressed file path. It does not check if the file exists....
Definition: Extract.cpp:27
Logging.h
LogError
#define LogError(...)
Definition: Logging.h:60
LogInfo
#define LogInfo(...)
Definition: Logging.h:81
cloudViewer::utility::ExtractFromZIP
void ExtractFromZIP(const std::string &file_path, const std::string &extract_dir)
Function to extract files compressed in .zip format.
Definition: ExtractZIP.cpp:158
cloudViewer::utility::Extract
void Extract(const std::string &file_path, const std::string &extract_dir)
Function to extract compressed files.
Definition: Extract.cpp:33
Extract.h