mlpack 3.4.2
detect_file_type.hpp
Go to the documentation of this file.
1
15#ifndef MLPACK_CORE_DATA_DETECT_FILE_TYPE_HPP
16#define MLPACK_CORE_DATA_DETECT_FILE_TYPE_HPP
17
18namespace mlpack {
19namespace data {
20
26std::string GetStringType(const arma::file_type& type);
27
35arma::file_type GuessFileType(std::istream& f);
36
47arma::file_type AutoDetect(std::fstream& stream,
48 const std::string& filename);
49
56arma::file_type DetectFromExtension(const std::string& filename);
57
58} // namespace data
59} // namespace mlpack
60
61#endif
std::string GetStringType(const arma::file_type &type)
Given a file type, return a logical name corresponding to that file type.
arma::file_type GuessFileType(std::istream &f)
Given an istream, attempt to guess the file type.
arma::file_type AutoDetect(std::fstream &stream, const std::string &filename)
Attempt to auto-detect the type of a file given its extension, and by inspecting the parts of the fil...
arma::file_type DetectFromExtension(const std::string &filename)
Return the type based only on the extension.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1