ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::data::DownloadDataset Class Reference

Dataset class with one or more downloaded file. More...

#include <Dataset.h>

Inheritance diagram for cloudViewer::data::DownloadDataset:
Collaboration diagram for cloudViewer::data::DownloadDataset:

Public Member Functions

 DownloadDataset (const std::string &prefix, const DataDescriptor &data_descriptor, const std::string &data_root="")
 
 DownloadDataset (const std::string &prefix, const std::vector< DataDescriptor > &data_descriptors, const std::string &data_root="")
 
virtual ~DownloadDataset ()
 
- Public Member Functions inherited from cloudViewer::data::Dataset
 Dataset (const std::string &prefix, const std::string &data_root="")
 Parameterized Constructor. More...
 
virtual ~Dataset ()
 
const std::string GetDataRoot () const
 Get data root directory. The data root is set at construction time or automatically determined. More...
 
const std::string GetPrefix () const
 Get prefix for the dataset. More...
 
const std::string GetDownloadDir () const
 Get absolute path to download directory. i.e. ${data_root}/download/${prefix}. More...
 
const std::string GetExtractDir () const
 Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}. More...
 

Protected Member Functions

bool HasDownloaded (const DataDescriptor &data_descriptor) const
 Check if all files are downloaded and MD5 checksums are valid. More...
 
- Protected Member Functions inherited from cloudViewer::data::Dataset
void CheckPathsExist (const std::vector< std::string > &paths) const
 Check if the paths exists after extraction. More...
 

Protected Attributes

std::vector< DataDescriptordata_descriptors_
 
- Protected Attributes inherited from cloudViewer::data::Dataset
std::string data_root_
 CloudViewer data root. More...
 
std::string prefix_
 Dataset prefix. More...
 

Detailed Description

Dataset class with one or more downloaded file.

Parameters
prefixPrefix of the dataset. The data is downloaded in ${data_root}/download/${prefix} and extracted in ${data_root}/extract/${prefix}.
data_descriptorInformation about a file to be downloaded.
data_rootPath to the dataset root.

Definition at line 152 of file Dataset.h.

Constructor & Destructor Documentation

◆ DownloadDataset() [1/2]

cloudViewer::data::DownloadDataset::DownloadDataset ( const std::string &  prefix,
const DataDescriptor data_descriptor,
const std::string &  data_root = "" 
)

Definition at line 83 of file Dataset.cpp.

References cloudViewer::data::data_descriptor.

◆ DownloadDataset() [2/2]

◆ ~DownloadDataset()

virtual cloudViewer::data::DownloadDataset::~DownloadDataset ( )
inlinevirtual

Definition at line 162 of file Dataset.h.

Member Function Documentation

◆ HasDownloaded()

Member Data Documentation

◆ data_descriptors_

std::vector<DataDescriptor> cloudViewer::data::DownloadDataset::data_descriptors_
protected

Definition at line 167 of file Dataset.h.


The documentation for this class was generated from the following files: