Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::datareader::ConfigReader Class Reference

Class ConfigReader used to verify user input for a process over a sequence. More...


Detailed Description

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>

List of all members.

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

Constructor & Destructor Documentation

jafar::datareader::ConfigReader::ConfigReader ( const std::string &  _configFile)

constructor

Parameters:
configFileconfiguration file

Member Function Documentation

void jafar::datareader::ConfigReader::check ( int &  begin,
int &  end,
int &  offset 
)

checks validity of users input and define them if set to -1

Parameters:
beginin/out first index of image or position file to process
endin/out last index of image or position file to process
offsetin/out process step

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS