ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
misc.h File Reference
#include <boost/filesystem.hpp>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "util/endian.h"
#include "util/logging.h"
#include "util/string.h"
Include dependency graph for misc.h:

Go to the source code of this file.

Namespaces

 colmap
 

Macros

#define STRINGIFY(s)   STRINGIFY_(s)
 
#define STRINGIFY_(s)   #s
 

Enumerations

enum class  colmap::CopyType { colmap::COPY , colmap::HARD_LINK , colmap::SOFT_LINK }
 

Functions

std::string colmap::EnsureTrailingSlash (const std::string &str)
 
bool colmap::HasFileExtension (const std::string &file_name, const std::string &ext)
 
void colmap::SplitFileExtension (const std::string &path, std::string *root, std::string *ext)
 
void colmap::FileCopy (const std::string &src_path, const std::string &dst_path, CopyType type)
 
bool colmap::ExistsFile (const std::string &path)
 
bool colmap::ExistsDir (const std::string &path)
 
bool colmap::ExistsPath (const std::string &path)
 
void colmap::CreateDirIfNotExists (const std::string &path)
 
std::string colmap::GetPathBaseName (const std::string &path)
 
std::string colmap::GetParentDir (const std::string &path)
 
std::string colmap::GetRelativePath (const std::string &from, const std::string &to)
 
template<typename... T>
std::string colmap::JoinPaths (T const &... paths)
 
std::vector< std::string > colmap::GetFileList (const std::string &path)
 
std::vector< std::string > colmap::GetRecursiveFileList (const std::string &path)
 
std::vector< std::string > colmap::GetDirList (const std::string &path)
 
std::vector< std::string > colmap::GetRecursiveDirList (const std::string &path)
 
size_t colmap::GetFileSize (const std::string &path)
 
void colmap::PrintHeading1 (const std::string &heading)
 
void colmap::PrintHeading2 (const std::string &heading)
 
template<typename T >
bool colmap::VectorContainsValue (const std::vector< T > &vector, const T value)
 
template<typename T >
bool colmap::VectorContainsDuplicateValues (const std::vector< T > &vector)
 
template<>
std::vector< std::string > colmap::CSVToVector (const std::string &csv)
 
template<typename T >
std::string colmap::VectorToCSV (const std::vector< T > &values)
 
template<typename T >
void colmap::ReadBinaryBlob (const std::string &path, std::vector< T > *data)
 
template<typename T >
void colmap::WriteBinaryBlob (const std::string &path, const std::vector< T > &data)
 
std::vector< std::string > colmap::ReadTextFileLines (const std::string &path)
 
void colmap::RemoveCommandLineArgument (const std::string &arg, int *argc, char **argv)
 

Macro Definition Documentation

◆ STRINGIFY

#define STRINGIFY (   s)    STRINGIFY_(s)

Definition at line 23 of file misc.h.

◆ STRINGIFY_

#define STRINGIFY_ (   s)    #s

Definition at line 24 of file misc.h.