TuttleOFX  1
main.cpp File Reference
#include <sam/common/utility.hpp>
#include <sam/common/options.hpp>
#include <tuttle/host/Graph.hpp>
#include <detector.hpp>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
Include dependency graph for main.cpp:

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 checkImageStatus (Graph::Node &read, Graph::Node &stat, Graph &graph, const bfs::path &filename)
 Check the image status.
EImageStatus checkFile (Graph::Node &read, Graph::Node &stat, Graph &graph, const bfs::path &filename)
void checkSequence (Graph::Node &read, Graph::Node &stat, Graph &graph, const sequenceParser::Sequence &seq)
void checkSequence (Graph::Node &read, Graph::Node &stat, Graph &graph, const sequenceParser::Sequence &seq, const sequenceParser::Time first, const sequenceParser::Time last)
int main (int argc, char **argv)

Variables

static int _blackImage = 0
static int _nullFileSize = 0
static int _corruptedImage = 0
static int _missingFiles = 0

Enumeration Type Documentation

Enumerator:
eImageStatusOK 
eImageStatusBlack 
eImageStatusFileSizeError 
eImageStatusNoFile 
eImageStatusImageError 
eImageStatusDiffNull 
eImageStatusDiffNotNull 
eImageStatusFileSizeError 
eImageStatusNoFile 
eImageStatusImageError 

Definition at line 27 of file main.cpp.

Enumerator:
eReturnCodeOK 
eReturnCodeErrorInImages 
eReturnCodeApplicationError 
eReturnCodeOK 
eReturnCodeErrorInImages 
eReturnCodeApplicationError 

Definition at line 20 of file main.cpp.


Function Documentation

EImageStatus checkFile ( Graph::Node read,
Graph::Node stat,
Graph graph,
const bfs::path &  filename 
)
EImageStatus checkImageStatus ( Graph::Node read,
Graph::Node stat,
Graph graph,
const bfs::path &  filename 
)
void checkSequence ( Graph::Node read,
Graph::Node stat,
Graph graph,
const sequenceParser::Sequence seq 
)

Definition at line 99 of file main.cpp.

References checkFile(), sequenceParser::Sequence::getAbsoluteFilenameAt(), sequenceParser::Sequence::getFirstTime(), and sequenceParser::Sequence::getLastTime().

Referenced by main().

Here is the call graph for this function:

void checkSequence ( Graph::Node read,
Graph::Node stat,
Graph graph,
const sequenceParser::Sequence seq,
const sequenceParser::Time  first,
const sequenceParser::Time  last 
)

Definition at line 107 of file main.cpp.

References checkFile(), and sequenceParser::Sequence::getAbsoluteFilenameAt().

Here is the call graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 115 of file main.cpp.

References _blackImage, _corruptedImage, _missingFiles, _nullFileSize, checkFile(), checkSequence(), tuttle::host::Graph::connect(), tuttle::host::core(), tuttle::host::Graph::createNode(), sequenceParser::eMaskTypeDirectory, sequenceParser::eMaskTypeFile, sequenceParser::eMaskTypeSequence, sequenceParser::eMaskTypeUndefined, eReturnCodeApplicationError, OFX::Log::error(), sequenceParser::fileObjectInDirectory(), sequenceParser::File::getAbsoluteFilename(), sequenceParser::FileObject::getMaskType(), tuttle::host::INode::getParam(), sam::kBriefOptionLongName, sam::kBriefOptionMessage, sam::kBriefOptionString, sam::kColorOptionLongName, sam::kColorOptionMessage, sam::kColorOptionString, sam::kEnableColorOptionLongName, sam::kEnableColorOptionMessage, sam::kEnableColorOptionString, sam::kHelpOptionLongName, sam::kHelpOptionMessage, sam::kHelpOptionString, sam::kInputDirOptionLongName, sam::kInputOptionLongName, sam::kInputOptionMessage, sam::kInputOptionString, sam::kRangeOptionLongName, sam::kRangeOptionMessage, sam::kRangeOptionString, sam::kReaderOptionLongName, sam::kReaderOptionMessage, sam::kReaderOptionString, sam::kScriptOptionLongName, sam::kScriptOptionMessage, sam::kScriptOptionString, sam::kUrlTuttleofxProject, tuttle::host::Core::preload(), tuttle::host::ofx::attribute::OfxhParam::setValue(), signal_callback_handler(), string_to_boolean(), TUTTLE_LOG_ERROR, TUTTLE_LOG_INFO, and TUTTLE_LOG_WARNING.

Here is the call graph for this function:


Variable Documentation

int _blackImage = 0 [static]

Definition at line 16 of file main.cpp.

Referenced by checkFile(), and main().

int _corruptedImage = 0 [static]

Definition at line 18 of file main.cpp.

Referenced by checkFile(), and main().

int _missingFiles = 0 [static]

Definition at line 19 of file main.cpp.

Referenced by checkFile(), and main().

int _nullFileSize = 0 [static]

Definition at line 17 of file main.cpp.

Referenced by checkFile(), and main().