Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <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::set< fs::path > pathVec
 

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::set<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.

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 281 of file pto_move.cpp.

References hugin_utils::toupper().

int main ( int  argc,
char *  argv[] 
)
bool PTOCopyMove ( bool  movingFile,
fs::path  src,
fs::path  dest,
bool  overwriteAllFiles 
)
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 302 of file pto_move.cpp.

Referenced by main().

static void usage ( const char *  name)
static

Definition at line 314 of file pto_move.cpp.

References hugin_utils::GetHuginVersion().