Public Member Functions | Public Attributes | Private Attributes | List of all members
coil::GetOpt Class Reference

GetOpt class. More...

#include <OS.h>

Public Member Functions

 GetOpt (int argc, char *const argv[], const char *opt, int flag)
 Constructor. More...
 
 GetOpt (int argc, char *const argv[], const char *opt, int flag)
 Constructor. More...
 
int operator() ()
 Parses the command line arguments. More...
 
int operator() ()
 Parses the command line arguments. More...
 
 ~GetOpt ()
 Destructor. More...
 
 ~GetOpt ()
 Destructor. More...
 

Public Attributes

char * optarg
 
int opterr
 処理対象引数 More...
 
int optind
 オプション引数 More...
 
int optopt
 エラー表示 0:抑止、1:表示 More...
 

Private Attributes

int m_argc
 オプション文字が足りない時、多い時にセットされる More...
 
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.

char * coil::GetOpt::optarg

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

int coil::GetOpt::opterr

処理対象引数

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

int coil::GetOpt::optind

オプション引数

IvV

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

int coil::GetOpt::optopt

エラー表示 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 file:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:59