class FileListCmdOption

This class take a file name in the command line, and reads a list of files contained in this file.

Inheritance:


Public Fields

[more]char** file_names
Contains the file names after reading the command line
[more]int n_files
Number of files that have been read

Public Methods

[more] FileListCmdOption(const char* name_, const char* help_="", bool save_=false)


Inherited from CmdOption:

Public Fields

ochar* name
ochar* type_name
ochar* help
obool save
obool is_setted

Public Methods

ovirtual void initValue()
ovirtual void printValue(XFile* file_)
ovirtual void read(int* argc_, char*** argv_)
obool isOption(bool set_=false)
obool isArgument(bool set_=false)
obool isText(bool set_=false)
obool isMasterSwitch(bool set_=false)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

This class take a file name in the command line, and reads a list of files contained in this file.

In fact, there is a special case: it checks first if "-one_file" the current argument on the command line. If true, then it reads the next argument which will be the only file in the list.

ochar** file_names
Contains the file names after reading the command line

oint n_files
Number of files that have been read

o FileListCmdOption(const char* name_, const char* help_="", bool save_=false)


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)
See Also:
CmdLine

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.