|
Hugintrunk
0.1
|
helper program for moving project with all images at once More...
#include "hugin_config.h"#include <iostream>#include <string>#include <fstream>#include <filesystem>#include <getopt.h>#include <panodata/Panorama.h>#include <hugin_utils/stl_utils.h>
Go to the source code of this file.
Typedefs | |
| typedef std::set < std::filesystem::path > | pathVec |
Functions | |
| std::string | IncludeTrailingDelimiter (std::string path) |
| bool | RebaseFilename (std::filesystem::path srcFile, std::filesystem::path &destFile, std::string srcPath, std::string destPath) |
| bool | checkDestinationDirectory (std::string dir, std::filesystem::path &pathTo) |
| bool | PTOCopyMove (bool movingFile, std::filesystem::path src, std::filesystem::path dest, bool overwriteAllFiles) |
| template<class iteratorType > | |
| bool | iterateFileSystem (std::string src, pathVec &projectFiles) |
| void | SearchPTOFilesInDirectory (pathVec &projectFiles, std::string src, bool recursive) |
| static void | usage (const char *name) |
| int | main (int argc, char *argv[]) |
helper program for moving project with all images at once
Definition in file pto_move.cpp.
| typedef std::set<std::filesystem::path> pathVec |
Definition at line 100 of file pto_move.cpp.
| bool checkDestinationDirectory | ( | std::string | dir, |
| std::filesystem::path & | pathTo | ||
| ) |
Definition at line 69 of file pto_move.cpp.
Referenced by main(), and PTOCopyMove().
| std::string IncludeTrailingDelimiter | ( | std::string | path | ) |
Definition at line 37 of file pto_move.cpp.
Referenced by RebaseFilename().
| bool iterateFileSystem | ( | std::string | src, |
| pathVec & | projectFiles | ||
| ) |
Definition at line 281 of file pto_move.cpp.
References hugin_utils::toupper().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 339 of file pto_move.cpp.
References checkDestinationDirectory(), PTOCopyMove(), RebaseFilename(), SearchPTOFilesInDirectory(), hugin_utils::stripPath(), hugin_utils::toupper(), and usage().
| bool PTOCopyMove | ( | bool | movingFile, |
| std::filesystem::path | src, | ||
| std::filesystem::path | dest, | ||
| bool | overwriteAllFiles | ||
| ) |
Definition at line 104 of file pto_move.cpp.
References checkDestinationDirectory(), hugin_utils::GetAbsoluteFilename(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HuginBase::Panorama::ReadPTOFile(), RebaseFilename(), HuginBase::Panorama::setImageFilename(), hugin_utils::toupper(), and HuginBase::Panorama::WritePTOFile().
Referenced by main().
| bool RebaseFilename | ( | std::filesystem::path | srcFile, |
| std::filesystem::path & | destFile, | ||
| std::string | srcPath, | ||
| std::string | destPath | ||
| ) |
Definition at line 55 of file pto_move.cpp.
References IncludeTrailingDelimiter().
Referenced by main(), and PTOCopyMove().
| void SearchPTOFilesInDirectory | ( | pathVec & | projectFiles, |
| std::string | src, | ||
| bool | recursive | ||
| ) |
Definition at line 302 of file pto_move.cpp.
Referenced by main().
|
static |
Definition at line 314 of file pto_move.cpp.
References hugin_utils::GetHuginVersion().
1.8.5