23 #include <sys/utsname.h> 24 #include <sys/types.h> 179 GetOpt(
int argc,
char*
const argv[],
const char* opt,
int flag)
239 int result = getopt(m_argc, m_argv, m_opt);
241 if(::
optind == optind_last)
244 result = getopt(m_argc, m_argv, m_opt);
252 if(optind_last < m_argc) { ++optind_last; }
267 char*
const * m_argv;
char * getenv(const char *name)
Get environment variable.
Definition: OS.h:136
int operator()()
Parses the command line arguments.
Definition: OS.h:230
GetOpt class.
Definition: OS.h:157
int optind
オプション引数
Definition: OS.h:258
pid_t getppid()
Get process ID of the parent process.
Definition: OS.h:108
GetOpt(int argc, char *const argv[], const char *opt, int flag)
Constructor.
Definition: OS.h:179
char * optarg
Definition: OS.h:257
int uname(utsname *name)
Definition: OS.h:59
::pid_t pid_t
Get process ID of the caller process.
Definition: OS.h:83
pid_t getpid()
Definition: OS.h:84
~GetOpt()
Destructor.
Definition: OS.h:203
int opterr
処理対象引数
Definition: OS.h:259
int optopt
エラー表示 0:抑止、1:表示
Definition: OS.h:260
::utsname utsname
Get System information.
Definition: OS.h:58
Common Object Interface Layer.
Definition: Affinity.h:28