Public Member Functions | Public Attributes | Private Attributes
coil::GetOpt Class Reference

GetOpt class. More...

#include <OS.h>

List of all members.

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

Detailed Description

GetOpt class.

Definition at line 157 of file posix/coil/OS.h.


Constructor & Destructor Documentation

coil::GetOpt::GetOpt ( int  argc,
char *const  argv[],
const char *  opt,
int  flag 
) [inline]

Constructor.

Constructor

Parameters:
nameObject name

Definition at line 179 of file posix/coil/OS.h.

coil::GetOpt::~GetOpt ( ) [inline]

Destructor.

Destructor

Definition at line 200 of file posix/coil/OS.h.

coil::GetOpt::GetOpt ( int  argc,
char *const  argv[],
const char *  opt,
int  flag 
) [inline]

Constructor.

Constructor

Parameters:
nameObject name

Definition at line 385 of file win32/coil/OS.h.

coil::GetOpt::~GetOpt ( ) [inline]

Destructor.

Destructor

Definition at line 408 of file win32/coil/OS.h.


Member Function Documentation

int coil::GetOpt::operator() ( ) [inline]

Parses the command line arguments.

Parses the command line arguments.

Returns:
Result of parses.

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.

Returns:
Result of parses.

Definition at line 432 of file win32/coil/OS.h.


Member Data Documentation

int coil::GetOpt::m_argc [private]

オプション文字が足りない時、多い時にセットされる

IvVAZbg

Definition at line 244 of file posix/coil/OS.h.

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.

Definition at line 238 of file posix/coil/OS.h.

処理対象引数

Definition at line 240 of file posix/coil/OS.h.

オプション引数

IvV

Definition at line 239 of file posix/coil/OS.h.

エラー表示 0:抑止、1:表示

G[\ヲ 0:}~A1:\ヲ

Definition at line 241 of file posix/coil/OS.h.


The documentation for this class was generated from the following files:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:18