Hugin trunk 0.1
Loading...
Searching...
No Matches
Typedefs | Functions
pto_move.cpp File Reference

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>
Include dependency graph for pto_move.cpp:

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[])
 

Detailed Description

helper program for moving project with all images at once

Author
T. Modes

Definition in file pto_move.cpp.

Typedef Documentation

◆ pathVec

typedef std::set<std::filesystem::path> pathVec

Definition at line 102 of file pto_move.cpp.

Function Documentation

◆ checkDestinationDirectory()

bool checkDestinationDirectory ( std::string  dir,
std::filesystem::path &  pathTo 
)

Definition at line 69 of file pto_move.cpp.

References threshold().

Referenced by main(), and PTOCopyMove().

◆ IncludeTrailingDelimiter()

std::string IncludeTrailingDelimiter ( std::string  path)

Definition at line 37 of file pto_move.cpp.

References threshold().

Referenced by RebaseFilename().

◆ iterateFileSystem()

template<class iteratorType >
bool iterateFileSystem ( std::string  src,
pathVec projectFiles 
)

Definition at line 281 of file pto_move.cpp.

References threshold(), and hugin_utils::toupper().

◆ main()

int main ( int  argc,
char argv[] 
)

◆ PTOCopyMove()

bool PTOCopyMove ( bool  movingFile,
std::filesystem::path  src,
std::filesystem::path  dest,
bool  overwriteAllFiles 
)

◆ RebaseFilename()

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(), and threshold().

Referenced by main(), and PTOCopyMove().

◆ SearchPTOFilesInDirectory()

void SearchPTOFilesInDirectory ( pathVec projectFiles,
std::string  src,
bool  recursive 
)

Definition at line 302 of file pto_move.cpp.

References threshold().

Referenced by main().

◆ usage()

static void usage ( const char name)
static

Definition at line 314 of file pto_move.cpp.

References hugin_utils::GetHuginVersion().