latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class loadImageList More...
#include <ltiLoadImageList.h>
Public Types | |
enum | eOperationMode { ListFileName, DirName, NameList } |
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
eOperationMode | mode |
std::string | dirName |
std::string | listFileName |
std::list< std::string > | nameList |
bool | skipErrors |
the parameters for the class loadImageList
Operation modes.
ListFileName |
read all images given in a textfile, see listFileName |
DirName |
read all image in a directory, see dirName |
NameList |
read all images in the list, see nameList |
lti::loadImageList::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
lti::loadImageList::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
lti::loadImageList::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
virtual functor::parameters* lti::loadImageList::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
parameters& lti::loadImageList::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
const char* lti::loadImageList::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
parameters& lti::loadImageList::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented in lti::loadVectorImageList::parameters.
virtual bool lti::loadImageList::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
virtual bool lti::loadImageList::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioFunctor::parameters.
Reimplemented in lti::loadVectorImageList::parameters.
std::string lti::loadImageList::parameters::dirName |
Name of a directory containing images, e.g.
"/home/fooman/myImages/"
std::string lti::loadImageList::parameters::listFileName |
Filename of a text file containing filenames of images.
Each row contains one filename only. The comment character is the semi-colon ';'. All text behind a semi-colon is regarded as comment. Such a file could look like this:
; some images to read /home/fooman/pics1/image1.png ;/home/fooman/pics1/image2.png /home/fooman/pics2/2.BMP /home/fooman/pics1/image1.jpg; another image
The functor would read the images:
Determines where the functor expects to find the filenames of the images to load.
There are three possibilities:
std::list<std::string> lti::loadImageList::parameters::nameList |
Each entry in the list contains the full filename of an image.