TuttleOFX
1
|
#include <sam/common/utility.hpp>
#include <sam/common/options.hpp>
#include <tuttle/host/Graph.hpp>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <Sequence.hpp>
#include <limits>
Go to the source code of this file.
Enumerations | |
enum | EReturnCode { eReturnCodeOK = 0, eReturnCodeErrorInImages = 1, eReturnCodeApplicationError = 2, eReturnCodeOK = 0, eReturnCodeErrorInImages = 1, eReturnCodeApplicationError = 2 } |
enum | EImageStatus { eImageStatusOK, eImageStatusBlack, eImageStatusFileSizeError, eImageStatusNoFile, eImageStatusImageError, eImageStatusDiffNull = 0, eImageStatusDiffNotNull, eImageStatusFileSizeError, eImageStatusNoFile, eImageStatusImageError } |
Functions | |
EImageStatus | diffImageStatus (Graph::Node &read1, Graph::Node &read2, Graph::Node &stat, Graph &graph, const bfs::path &filename1, const bfs::path &filename2) |
Process the difference between 2 readers and return status. | |
EImageStatus | diffImageStatus (Graph::Node &read1, Graph::Node &read2, Graph::Node &stat, Graph &graph, const bfs::path &filename, const std::vector< std::string > &generatorOptions) |
Process difference between a reader and a generator. | |
EImageStatus | diffFile (Graph::Node &read1, Graph::Node &read2, Graph::Node &stat, Graph &graph, const bfs::path &filename1, const bfs::path &filename2) |
Difference between 2 reader's node associated at 2 files. | |
EImageStatus | diffFile (Graph::Node &read1, Graph::Node &read2, Graph::Node &stat, Graph &graph, const bfs::path &filename1, const std::vector< std::string > &generatorOptions) |
Difference between 1 reader and 1 generator associated with 1 file and vector of options for the generator. | |
void | diffSequence (Graph::Node &read1, Graph::Node &read2, Graph::Node &stat, Graph &graph, const sequenceParser::Sequence &seq1, const sequenceParser::Sequence &seq2) |
void | diffSequence (Graph::Node &read1, Graph::Node &read2, Graph::Node &stat, Graph &graph, const sequenceParser::Sequence &seq1, const sequenceParser::Sequence &seq2, const sequenceParser::Time first, const sequenceParser::Time last) |
void | displayHelp (bpo::options_description &desc) |
int | main (int argc, char **argv) |
Variables | |
static int | _notNullImage = 0 |
static int | _nullFileSize = 0 |
static int | _corruptedImage = 0 |
static int | _missingFiles = 0 |
static int | _processedImages = 0 |
enum EImageStatus |
enum EReturnCode |
EImageStatus diffFile | ( | Graph::Node & | read1, |
Graph::Node & | read2, | ||
Graph::Node & | stat, | ||
Graph & | graph, | ||
const bfs::path & | filename1, | ||
const bfs::path & | filename2 | ||
) |
Difference between 2 reader's node associated at 2 files.
Definition at line 184 of file main.cpp.
References _corruptedImage, _missingFiles, _notNullImage, _nullFileSize, _processedImages, diffImageStatus(), eImageStatusDiffNotNull, eImageStatusDiffNull, eImageStatusFileSizeError, eImageStatusImageError, eImageStatusNoFile, and TUTTLE_LOG_WARNING.
Referenced by diffSequence(), and main().
EImageStatus diffFile | ( | Graph::Node & | read1, |
Graph::Node & | read2, | ||
Graph::Node & | stat, | ||
Graph & | graph, | ||
const bfs::path & | filename1, | ||
const std::vector< std::string > & | generatorOptions | ||
) |
Difference between 1 reader and 1 generator associated with 1 file and vector of options for the generator.
Definition at line 217 of file main.cpp.
References _corruptedImage, _missingFiles, _notNullImage, _nullFileSize, _processedImages, diffImageStatus(), eImageStatusDiffNotNull, eImageStatusDiffNull, eImageStatusFileSizeError, eImageStatusImageError, eImageStatusNoFile, and TUTTLE_LOG_WARNING.
EImageStatus diffImageStatus | ( | Graph::Node & | read1, |
Graph::Node & | read2, | ||
Graph::Node & | stat, | ||
Graph & | graph, | ||
const bfs::path & | filename1, | ||
const bfs::path & | filename2 | ||
) |
Process the difference between 2 readers and return status.
Definition at line 42 of file main.cpp.
References tuttle::host::Graph::compute(), eImageStatusDiffNotNull, eImageStatusDiffNull, eImageStatusFileSizeError, eImageStatusImageError, eImageStatusNoFile, tuttle::host::INode::getParam(), tuttle::host::ofx::attribute::OfxhParam::setValue(), TUTTLE_LOG_ERROR, and TUTTLE_LOG_TRACE.
Referenced by diffFile().
EImageStatus diffImageStatus | ( | Graph::Node & | read1, |
Graph::Node & | read2, | ||
Graph::Node & | stat, | ||
Graph & | graph, | ||
const bfs::path & | filename, | ||
const std::vector< std::string > & | generatorOptions | ||
) |
Process difference between a reader and a generator.
Definition at line 86 of file main.cpp.
References tuttle::host::Graph::compute(), eImageStatusDiffNotNull, eImageStatusDiffNull, eImageStatusFileSizeError, eImageStatusImageError, eImageStatusNoFile, tuttle::host::INode::getParam(), tuttle::host::ofx::attribute::OfxhParam::setValue(), TUTTLE_INFO, TUTTLE_LOG_ERROR, TUTTLE_LOG_TRACE, and TUTTLE_LOG_VAR.
void diffSequence | ( | Graph::Node & | read1, |
Graph::Node & | read2, | ||
Graph::Node & | stat, | ||
Graph & | graph, | ||
const sequenceParser::Sequence & | seq1, | ||
const sequenceParser::Sequence & | seq2 | ||
) |
Definition at line 247 of file main.cpp.
References diffFile(), sequenceParser::Sequence::getAbsoluteFilenameAt(), sequenceParser::Sequence::getFirstTime(), and sequenceParser::Sequence::getLastTime().
Referenced by main().
void diffSequence | ( | Graph::Node & | read1, |
Graph::Node & | read2, | ||
Graph::Node & | stat, | ||
Graph & | graph, | ||
const sequenceParser::Sequence & | seq1, | ||
const sequenceParser::Sequence & | seq2, | ||
const sequenceParser::Time | first, | ||
const sequenceParser::Time | last | ||
) |
Definition at line 255 of file main.cpp.
References diffFile(), and sequenceParser::Sequence::getAbsoluteFilenameAt().
void displayHelp | ( | bpo::options_description & | desc | ) |
Definition at line 264 of file main.cpp.
References tuttle::common::Color::get(), sam::kUrlTuttleofxProject, SAM_EXAMPLE_LINE_COUT, SAM_EXAMPLE_TITLE_COUT, and TUTTLE_LOG_INFO.
Referenced by displayHelp(), and main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 299 of file main.cpp.
References _corruptedImage, _missingFiles, _notNullImage, _nullFileSize, _processedImages, tuttle::host::Graph::connect(), tuttle::host::core(), tuttle::host::Graph::createNode(), debug, diffFile(), diffSequence(), displayHelp(), eReturnCodeApplicationError, OFX::Log::error(), tuttle::host::INode::getAttribute(), sam::kBriefOptionLongName, sam::kBriefOptionMessage, sam::kBriefOptionString, sam::kColorOptionLongName, sam::kColorOptionMessage, sam::kColorOptionString, sam::kEnableColorOptionLongName, sam::kEnableColorOptionMessage, sam::kEnableColorOptionString, sam::kGeneratorArgsOptionLongName, sam::kGeneratorArgsOptionMessage, sam::kGeneratorArgsOptionString, sam::kHelpOptionLongName, sam::kHelpOptionMessage, sam::kHelpOptionString, sam::kInputOptionLongName, sam::kInputOptionMessage, sam::kInputOptionString, sam::kQuietOptionLongName, sam::kQuietOptionMessage, sam::kQuietOptionString, sam::kRangeOptionLongName, sam::kRangeOptionMessage, sam::kRangeOptionString, sam::kReaderOptionLongName, sam::kReaderOptionMessage, sam::kReaderOptionString, sam::kScriptOptionLongName, sam::kScriptOptionMessage, sam::kScriptOptionString, sam::kVerboseOptionLongName, sam::kVerboseOptionMessage, sam::kVerboseOptionString, tuttle::host::Core::preload(), signal_callback_handler(), string_to_boolean(), boost::stack_trace::trace(), TUTTLE_LOG_ERROR, TUTTLE_LOG_INFO, TUTTLE_LOG_TRACE, TUTTLE_LOG_WARNING, and OFX::Log::warning().
int _corruptedImage = 0 [static] |
Definition at line 21 of file main.cpp.
Referenced by diffFile(), and main().
int _missingFiles = 0 [static] |
Definition at line 22 of file main.cpp.
Referenced by diffFile(), and main().
int _notNullImage = 0 [static] |
Definition at line 19 of file main.cpp.
Referenced by diffFile(), and main().
int _nullFileSize = 0 [static] |
Definition at line 20 of file main.cpp.
Referenced by diffFile(), and main().
int _processedImages = 0 [static] |
Definition at line 23 of file main.cpp.
Referenced by diffFile(), and main().