Jafar
|
Class ConfigReader used to verify user input for a process over a sequence. More...
Class ConfigReader used to verify user input for a process over a sequence.
It checks the first, last and step of the process. If not given they will be set to the given ones in the configuration file.
Definition at line 21 of file ConfigReader.hpp.
#include <ConfigReader.hpp>
Public Member Functions | |
ConfigReader (const std::string &_configFile) | |
constructor | |
void | check (int &begin, int &end, int &offset) |
checks validity of users input and define them if set to -1 | |
int | first () const |
returns first index | |
int | last () const |
returns last index | |
int | step () const |
returns step of numbering | |
int | digits () const |
returns number of digits in image/pos file names | |
std::string | imagesSuffix () const |
returns suffix of image files | |
std::string | posesSuffix () const |
returns suffix of pose files | |
std::string | imagesPrefix () const |
returns prefix of image files | |
std::string | posesPrefix () const |
returns prefix of pose files | |
std::string | posesPattern () const |
returns pattern of pose files | |
std::string | imagesPattern () const |
return pattern of image files | |
std::string | timesPattern () const |
return pattern of time files | |
Private Attributes | |
int | m_first |
first index to process | |
int | m_last |
last index to process | |
int | m_step |
process step | |
int | m_digits |
number of digits in image/pos file names | |
std::string | m_imgSuffix |
suffix of images files | |
std::string | m_posSuffix |
suffix of pos files | |
std::string | m_imgPrefix |
prefix of images files | |
std::string | m_posPrefix |
prefix of pos files | |
std::string | m_patternImages |
std::string | m_patternPoses |
std::string | m_patternTimes |
std::string | configFile |
configuration file name | |
kernel::KeyValueFile | handler |
key value file handler |
jafar::datareader::ConfigReader::ConfigReader | ( | const std::string & | _configFile | ) |
constructor
configFile | configuration file |
void jafar::datareader::ConfigReader::check | ( | int & | begin, |
int & | end, | ||
int & | offset | ||
) |
checks validity of users input and define them if set to -1
begin | in/out first index of image or position file to process |
end | in/out last index of image or position file to process |
offset | in/out process step |
Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1 |