class CmdFile

This class is designed to read parameters from a file

Inheritance:


Public Methods

[more] CmdFile()
[more]void read(char* , bool = true)
[more]void readHref()
[more]void help()
[more]void addICmdOption(const char* name, int* ptr, int initvalue, const char* help="")
[more]void addBCmdOption(const char* name, bool* ptr, bool initvalue, const char* help="")
[more]void addRCmdOption(const char* name, real* ptr, real initvalue, const char* help="")
[more]void addSCmdOption(const char* name, char** ptr, const char* initvalue, const char* help="")
[more]void addICmd(const char* name, int* ptr, const char* help="")
[more]void addBCmd(const char* name, bool* ptr, const char* help="")
[more]void addRCmd(const char* name, real* ptr, const char* help="")
[more]void addSCmd(const char* name, char** ptr, const char* help="")
[more]void addHrefICmdOption(const char* name, int** ptr, int initvalue, const char* help="", int = 1)
[more]void addHrefBCmdOption(const char* name, bool** ptr, bool initvalue, const char* help="", int = 1)
[more]void addHrefRCmdOption(const char* name, real** ptr, real initvalue, const char* help="", int = 1)
[more]void addHrefSCmdOption(const char* name, char*** ptr, const char* initvalue, const char* help="", int = 1)
[more]void addHrefICmd(const char* name, int** ptr, const char* help="", int = 1)
[more]void addHrefBCmd(const char* name, bool** ptr, const char* help="", int = 1)
[more]void addHrefRCmd(const char* name, real** ptr, const char* help="", int = 1)
[more]void addHrefSCmd(const char* name, char*** ptr, const char* help="", int = 1)
[more]void addText(const char* text)
Add a text line in the help message
[more]void info(const char* text)
Add a text at the beginnig of the help
[more]void addCmdOption(const char* name, void* ptr, int type, const char* help="", int status=CMD_FILE_OPTION)
[more]void addHrefCmdOption(const char* name, void** ptr, int type, const char* help="", int status=CMD_FILE_OPTION, int = 1)
[more]void setCmdOption(int argc, char** argv, int* current, CmdFileOption* ptro)
[more]void setHrefCmdOption(int argc, char** argv, int* current, CmdFileOption* ptro)
[more]void printCmdOption(CmdFileOption* ptro)
[more]virtual ~CmdFile()


Documentation

This class is designed to read parameters from a file

This is a clone of CmdLine but for files.

o CmdFile()

ovoid read(char* , bool = true)

ovoid readHref()

ovoid help()

ovoid addICmdOption(const char* name, int* ptr, int initvalue, const char* help="")

ovoid addBCmdOption(const char* name, bool* ptr, bool initvalue, const char* help="")

ovoid addRCmdOption(const char* name, real* ptr, real initvalue, const char* help="")

ovoid addSCmdOption(const char* name, char** ptr, const char* initvalue, const char* help="")

ovoid addICmd(const char* name, int* ptr, const char* help="")

ovoid addBCmd(const char* name, bool* ptr, const char* help="")

ovoid addRCmd(const char* name, real* ptr, const char* help="")

ovoid addSCmd(const char* name, char** ptr, const char* help="")

ovoid addHrefICmdOption(const char* name, int** ptr, int initvalue, const char* help="", int = 1)

ovoid addHrefBCmdOption(const char* name, bool** ptr, bool initvalue, const char* help="", int = 1)

ovoid addHrefRCmdOption(const char* name, real** ptr, real initvalue, const char* help="", int = 1)

ovoid addHrefSCmdOption(const char* name, char*** ptr, const char* initvalue, const char* help="", int = 1)

ovoid addHrefICmd(const char* name, int** ptr, const char* help="", int = 1)

ovoid addHrefBCmd(const char* name, bool** ptr, const char* help="", int = 1)

ovoid addHrefRCmd(const char* name, real** ptr, const char* help="", int = 1)

ovoid addHrefSCmd(const char* name, char*** ptr, const char* help="", int = 1)

ovoid addText(const char* text)
Add a text line in the help message

ovoid info(const char* text)
Add a text at the beginnig of the help

ovoid addCmdOption(const char* name, void* ptr, int type, const char* help="", int status=CMD_FILE_OPTION)

ovoid addHrefCmdOption(const char* name, void** ptr, int type, const char* help="", int status=CMD_FILE_OPTION, int = 1)

ovoid setCmdOption(int argc, char** argv, int* current, CmdFileOption* ptro)

ovoid setHrefCmdOption(int argc, char** argv, int* current, CmdFileOption* ptro)

ovoid printCmdOption(CmdFileOption* ptro)

ovirtual ~CmdFile()


This class has no child classes.
Author:
Sebastien Marcel (marcel@idiap.ch)
Version:
2.0 Fri 15 Jul 2005 11:35:10 AM CEST
Since:
2.0

Alphabetic index HTML hierarchy of classes or Java



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