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

◆ GetOpt() [1/2]

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.

◆ ~GetOpt() [1/2]

coil::GetOpt::~GetOpt ( )
inline

Destructor.

Destructor

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

◆ GetOpt() [2/2]

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.

◆ ~GetOpt() [2/2]

coil::GetOpt::~GetOpt ( )
inline

Destructor.

Destructor

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

Member Function Documentation

◆ operator()() [1/2]

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

Parses the command line arguments.

Parses the command line arguments.

Returns
Result of parses.

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

◆ operator()() [2/2]

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

◆ m_argc

int coil::GetOpt::m_argc
private

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

IvVAZbg

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

◆ m_argv

char *const * coil::GetOpt::m_argv
private

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

◆ m_flag

int coil::GetOpt::m_flag
private

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

◆ m_opt

const char * coil::GetOpt::m_opt
private

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

◆ optarg

char * coil::GetOpt::optarg

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

◆ opterr

int coil::GetOpt::opterr

処理対象引数

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

◆ optind

int coil::GetOpt::optind

オプション引数

IvV

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

◆ optopt

int coil::GetOpt::optopt

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

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

Definition at line 260 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 Feb 28 2022 23:00:46