ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::data::DataDescriptor Struct Reference

Infomation about a file to be downloaded. More...

#include <Dataset.h>

Collaboration diagram for cloudViewer::data::DataDescriptor:

Public Member Functions

 DataDescriptor (const std::vector< std::string > &urls, const std::string &md5, const std::string &extract_in_subdir="")
 Constructor a list of url mirrors. More...
 
 DataDescriptor (const std::string &url, const std::string &md5, const std::string &extract_in_subdir="")
 Constructor a download url. More...
 

Public Attributes

std::vector< std::string > urls_
 List of URL mirrors. More...
 
std::string md5_
 MD5 checksum of the downloaded file. More...
 
std::string extract_in_subdir_ = ""
 

Detailed Description

Infomation about a file to be downloaded.

Definition at line 111 of file Dataset.h.

Constructor & Destructor Documentation

◆ DataDescriptor() [1/2]

cloudViewer::data::DataDescriptor::DataDescriptor ( const std::vector< std::string > &  urls,
const std::string &  md5,
const std::string &  extract_in_subdir = "" 
)
inline

Constructor a list of url mirrors.

Parameters
urlsURL mirrors of the file.
md5MD5 checksum of the file.
extract_in_subdirSubdirectory to extract the file. If empty, the file will be extracted in the root extract directory of the dataset.

Definition at line 117 of file Dataset.h.

◆ DataDescriptor() [2/2]

cloudViewer::data::DataDescriptor::DataDescriptor ( const std::string &  url,
const std::string &  md5,
const std::string &  extract_in_subdir = "" 
)
inline

Constructor a download url.

Parameters
urlURL of the file.
md5MD5 checksum of the file.
extract_in_subdirSubdirectory to extract the file. If empty, the file will be extracted in the root extract directory of the dataset.

Definition at line 127 of file Dataset.h.

Member Data Documentation

◆ extract_in_subdir_

std::string cloudViewer::data::DataDescriptor::extract_in_subdir_ = ""

Subdirectory to extract the file. If empty, the file will be extracted in the root extract directory of the dataset.

Definition at line 141 of file Dataset.h.

Referenced by cloudViewer::data::DownloadDataset::DownloadDataset(), and cloudViewer::data::pybind_data_classes().

◆ md5_

std::string cloudViewer::data::DataDescriptor::md5_

◆ urls_

std::vector<std::string> cloudViewer::data::DataDescriptor::urls_

The documentation for this struct was generated from the following file: