#include <OS.h>
Public Member Functions | |
| GetOpt (int argc, char *const argv[], const char *opt, int flag) | |
| Constructor. | |
| GetOpt (int argc, char *const argv[], const char *opt, int flag) | |
| Constructor. | |
| int | operator() () |
| Parses the command line arguments. | |
| int | operator() () |
| Parses the command line arguments. | |
| ~GetOpt () | |
| Destructor. | |
| ~GetOpt () | |
| Destructor. | |
Public Attributes | |
| char * | optarg |
| int | opterr |
| 処理対象引数 | |
| int | optind |
| オプション引数 | |
| int | optopt |
| エラー表示 0:抑止、1:表示 | |
Private Attributes | |
| int | m_argc |
| オプション文字が足りない時、多い時にセットされる | |
| char *const * | m_argv |
| int | m_flag |
| const char * | m_opt |
GetOpt class.
Definition at line 157 of file posix/coil/OS.h.
| coil::GetOpt::GetOpt | ( | int | argc, |
| char *const | argv[], | ||
| const char * | opt, | ||
| int | flag | ||
| ) | [inline] |
Constructor.
Constructor
| name | Object name |
Definition at line 179 of file posix/coil/OS.h.
| coil::GetOpt::~GetOpt | ( | ) | [inline] |
| coil::GetOpt::GetOpt | ( | int | argc, |
| char *const | argv[], | ||
| const char * | opt, | ||
| int | flag | ||
| ) | [inline] |
Constructor.
Constructor
| name | Object name |
Definition at line 385 of file win32/coil/OS.h.
| coil::GetOpt::~GetOpt | ( | ) | [inline] |
| int coil::GetOpt::operator() | ( | ) | [inline] |
Parses the command line arguments.
Parses the command line arguments.
Definition at line 224 of file posix/coil/OS.h.
| int coil::GetOpt::operator() | ( | ) | [inline] |
Parses the command line arguments.
Parses the command line arguments.
Definition at line 432 of file win32/coil/OS.h.
int coil::GetOpt::m_argc [private] |
char *const * coil::GetOpt::m_argv [private] |
Definition at line 245 of file posix/coil/OS.h.
int coil::GetOpt::m_flag [private] |
Definition at line 247 of file posix/coil/OS.h.
const char * coil::GetOpt::m_opt [private] |
Definition at line 246 of file posix/coil/OS.h.
| char * coil::GetOpt::optarg |
Definition at line 238 of file posix/coil/OS.h.