TuttleOFX  1
main.cpp File Reference
#include <detector.hpp>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdio>
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
Include dependency graph for main.cpp:

Go to the source code of this file.

Defines

#define BOOST_TEST_MODULE   FileSequenceDetector

Functions

void copyFile (std::string src, std::string dst)
void createTmpDiretoriesFilesAndSequences ()
void clearTmp ()
bool testFindObjectInDiretory (const char *path, const size_t numberOfFolders, const size_t numberOfFiles, const size_t numberOfSequences, const size_t numberOfFileObjects)
bool testFindObjectInDiretory (const char *path, const sequenceParser::EMaskOptions options, const size_t numberOfFolders, const size_t numberOfFiles, const size_t numberOfSequences, const size_t numberOfFileObjects)
bool testFirstSequenceLimits (const char *path, const int minValue, const int maxValue)
bool testFirstSequenceLimits (const char *path, const sequenceParser::EMaskOptions options, const int minValue, const int maxValue)
 BOOST_AUTO_TEST_CASE (TestSequence)

Define Documentation

#define BOOST_TEST_MODULE   FileSequenceDetector

Definition at line 3 of file main.cpp.


Function Documentation

void clearTmp ( )

Definition at line 125 of file main.cpp.

void copyFile ( std::string  src,
std::string  dst 
)

Definition at line 16 of file main.cpp.

Referenced by createTmpDiretoriesFilesAndSequences().

void createTmpDiretoriesFilesAndSequences ( )

Definition at line 22 of file main.cpp.

References copyFile().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

bool testFindObjectInDiretory ( const char *  path,
const size_t  numberOfFolders,
const size_t  numberOfFiles,
const size_t  numberOfSequences,
const size_t  numberOfFileObjects 
)
bool testFindObjectInDiretory ( const char *  path,
const sequenceParser::EMaskOptions  options,
const size_t  numberOfFolders,
const size_t  numberOfFiles,
const size_t  numberOfSequences,
const size_t  numberOfFileObjects 
)
bool testFirstSequenceLimits ( const char *  path,
const int  minValue,
const int  maxValue 
)

Definition at line 212 of file main.cpp.

References sequenceParser::Sequence::getFirstTime(), sequenceParser::Sequence::getLastTime(), and sequenceParser::sequenceInDirectory().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

bool testFirstSequenceLimits ( const char *  path,
const sequenceParser::EMaskOptions  options,
const int  minValue,
const int  maxValue 
)

Definition at line 237 of file main.cpp.

References sequenceParser::Sequence::getFirstTime(), sequenceParser::Sequence::getLastTime(), and sequenceParser::sequenceInDirectory().

Here is the call graph for this function: