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 <hugin_utils/filesystem.h>
#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::vector< fs::pathpathVec

Functions

std::string IncludeTrailingDelimiter (std::string path)
bool RebaseFilename (fs::path srcFile, fs::path &destFile, std::string srcPath, std::string destPath)
bool checkDestinationDirectory (std::string dir, fs::path &pathTo)
bool PTOCopyMove (bool movingFile, fs::path src, fs::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

typedef std::vector<fs::path> pathVec

Definition at line 100 of file pto_move.cpp.


Function Documentation

bool checkDestinationDirectory ( std::string  dir,
fs::path pathTo 
)

Definition at line 69 of file pto_move.cpp.

References cerr, and cout.

Referenced by main(), and PTOCopyMove().

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

Definition at line 37 of file pto_move.cpp.

Referenced by RebaseFilename().

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

Definition at line 291 of file pto_move.cpp.

References cout, and hugin_utils::toupper().

int main ( int  argc,
char *  argv[] 
)

Definition at line 349 of file pto_move.cpp.

References cerr, checkDestinationDirectory(), cout, PTOCopyMove(), RebaseFilename(), SearchPTOFilesInDirectory(), hugin_utils::stripPath(), hugin_utils::toupper(), and usage().

bool PTOCopyMove ( bool  movingFile,
fs::path  src,
fs::path  dest,
bool  overwriteAllFiles 
)

Definition at line 104 of file pto_move.cpp.

References cerr, checkDestinationDirectory(), cout, fill_set(), hugin_utils::GetAbsoluteFilename(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), OVERWRITE_EXISTING, HuginBase::Panorama::printPanoramaScript(), HuginBase::Panorama::readData(), RebaseFilename(), HuginBase::Panorama::setFilePrefix(), HuginBase::Panorama::setImageFilename(), AppBase::DocumentData::SUCCESSFUL, and hugin_utils::toupper().

Referenced by main().

bool RebaseFilename ( fs::path  srcFile,
fs::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 312 of file pto_move.cpp.

Referenced by main().

static void usage ( const char *  name  )  [static]

Definition at line 324 of file pto_move.cpp.

References cout, and hugin_utils::GetHuginVersion().


Generated on 25 Apr 2018 for Hugintrunk by  doxygen 1.4.7