メインページ   モジュール   名前空間一覧   クラス階層   アルファベット順一覧   構成   ファイル一覧   構成メンバ   ファイルメンバ   関連ページ    

クラス TArgument の解説
[System Category]

This is the TArgument class. [詳細]

#include <TArgument.hh>

TArgumentのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public メソッド

 TArgument (Tint argc, Tchar **argv, const Tstring &usage="")
 TArgument (Tint argc, Tchar **argv, const TOptionTable &table, const Tstring &usage="")
 ~TArgument ()
Tvoid Analyse ()
Tvoid ShowUsage () const
Tvoid ShowVersion () const
Tvoid ShowHelp () const
Tstring operator[] (Tint index) const
Tstring operator[] (const TOption &option) const
Tstring operator[] (const Tstring &optionname) const
Tint GetNumberOfOriginalArguments () const
Tchar ** GetOriginalArguments () const
const TOptionTable & GetOptionTable () const
const TOptionMap & GetOptionMap () const
const TstringGetProgramName () const
const TstringGetDirectoryName () const
const TstringListGetElements () const
Tint GetNumberOfElements () const
const TstringGetUsage () const
Tvoid SetUsage (const Tstring &usage)
Tbool HasOption (const TOption &option) const
Tbool HasOption (const Tstring &optionname) const
Tstring GetParameter (Tint index) const
Tstring GetParameter (const Tstring &optionname) const
Tstring GetParameter (const TOption &option) const
Tint GetIntegerParameter (Tint index) const
Tint GetIntegerParameter (const Tstring &optionname) const
Tint GetIntegerParameter (const TOption &option) const
Tdouble GetDoubleParameter (Tint index) const
Tdouble GetDoubleParameter (const Tstring &optionname) const
Tdouble GetDoubleParameter (const TOption &option) const
TintList GetIntegerElements () const
TdoubleList GetDoubleElements () const
Tstring GetElement (Tint index) const
Tint GetIntegerElement (Tint index) const
Tdouble GetDoubleElement (Tint index) const

フレンド

Tostreamoperator<< (Tostream &tos, const TArgument &right)

解説

This is the TArgument class.

作者:
Go IWAI <goiwai@users.sourceforge.jp>
The TArgument class detail description. Write it down ASAP!

TODO:
Perlモジュールみたいにしたい regex が必要

関数とのバインド // my $retval = // GetOptions("o|d|dir|output-dir|output=s" => $output, // "i|image|image-format|format=s" => $format, // "f|force" => $force, // "p|ps|postscript|with-postscript" => $ps, // "h|help" => $help, // "v|version" => $version);

バグ:
None?
例:

terminal.cc.

TArgument.hh67 行で定義されています。


コンストラクタとデストラクタの解説

TArgument::TArgument Tint  argc,
Tchar **  argv,
const Tstring usage = ""
 

TArgument.cc25 行で定義されています。

参照 Analyse(), basename(), dirname(), TOptionMap::HasOption(), ShowHelp(), ShowVersion(), Tendl, Tostrstream, と Tstring.

TArgument::TArgument Tint  argc,
Tchar **  argv,
const TOptionTable &  table,
const Tstring usage = ""
 

TArgument.cc54 行で定義されています。

参照 Analyse(), basename(), dirname(), TOptionMap::HasOption(), ShowHelp(), ShowVersion(), Tendl, Tostrstream, と Tstring.

TArgument::~TArgument  ) 
 

TArgument.cc83 行で定義されています。


メソッドの解説

Tvoid TArgument::Analyse  ) 
 

TArgument.cc86 行で定義されています。

参照 TOptionMap::AddOption(), TOptionTable::GetOptionList(), optarg, optind, ShowUsage(), Tchar, Tcout, TOption::tEither, Tendl, Tint, TOption::tNeed, TOptionList, Tsize_t, Tstring, と Tvoid.

呼出 TArgument().

const Tstring & TArgument::GetDirectoryName  )  const [inline]
 

TArgument.hh161 行で定義されています。

参照 Tstring.

Tdouble TArgument::GetDoubleElement Tint  index  )  const [inline]
 

TArgument.hh264 行で定義されています。

参照 GetElement(), index(), strtod(), と Tdouble.

TdoubleList TArgument::GetDoubleElements  )  const [inline]
 

TArgument.hh240 行で定義されています。

参照 strtod(), TdoubleList, と Tint.

Tdouble TArgument::GetDoubleParameter const TOption &  option  )  const [inline]
 

TArgument.hh226 行で定義されています。

参照 GetParameter(), strtod(), と Tdouble.

Tdouble TArgument::GetDoubleParameter const Tstring optionname  )  const [inline]
 

TArgument.hh221 行で定義されています。

参照 GetParameter(), strtod(), と Tdouble.

Tdouble TArgument::GetDoubleParameter Tint  index  )  const [inline]
 

TArgument.hh216 行で定義されています。

参照 GetParameter(), index(), strtod(), と Tdouble.

Tstring TArgument::GetElement Tint  index  )  const [inline]
 

TArgument.hh249 行で定義されています。

参照 index(), Tint, と Tstring.

呼出 GetDoubleElement(), GetIntegerElement(), と operator[]().

const TstringList & TArgument::GetElements  )  const [inline]
 

TArgument.hh166 行で定義されています。

参照 TstringList.

Tint TArgument::GetIntegerElement Tint  index  )  const [inline]
 

TArgument.hh259 行で定義されています。

参照 GetElement(), index(), strtoi(), と Tint.

TintList TArgument::GetIntegerElements  )  const [inline]
 

TArgument.hh231 行で定義されています。

参照 strtoi(), Tint, と TintList.

Tint TArgument::GetIntegerParameter const TOption &  option  )  const [inline]
 

TArgument.hh211 行で定義されています。

参照 GetParameter(), strtoi(), と Tint.

Tint TArgument::GetIntegerParameter const Tstring optionname  )  const [inline]
 

TArgument.hh206 行で定義されています。

参照 GetParameter(), strtoi(), と Tint.

Tint TArgument::GetIntegerParameter Tint  index  )  const [inline]
 

TArgument.hh201 行で定義されています。

参照 GetParameter(), index(), strtoi(), と Tint.

Tint TArgument::GetNumberOfElements  )  const [inline]
 

TArgument.hh171 行で定義されています。

参照 Tint.

Tint TArgument::GetNumberOfOriginalArguments  )  const [inline]
 

TArgument.hh136 行で定義されています。

参照 Tint.

const TOptionMap & TArgument::GetOptionMap  )  const [inline]
 

TArgument.hh151 行で定義されています。

const TOptionTable & TArgument::GetOptionTable  )  const [inline]
 

TArgument.hh146 行で定義されています。

Tchar ** TArgument::GetOriginalArguments  )  const [inline]
 

TArgument.hh141 行で定義されています。

参照 Tchar.

Tstring TArgument::GetParameter const TOption &  option  )  const [inline]
 

TArgument.hh196 行で定義されています。

参照 TOptionMap::GetParameter(), と Tstring.

Tstring TArgument::GetParameter const Tstring optionname  )  const [inline]
 

TArgument.hh191 行で定義されています。

参照 TOptionMap::GetParameter(), と Tstring.

Tstring TArgument::GetParameter Tint  index  )  const [inline]
 

TArgument.hh186 行で定義されています。

参照 TOptionMap::GetParameter(), index(), と Tstring.

呼出 GetDoubleParameter(), GetIntegerParameter(), と operator[]().

const Tstring & TArgument::GetProgramName  )  const [inline]
 

TArgument.hh156 行で定義されています。

参照 Tstring.

const Tstring & TArgument::GetUsage  )  const [inline]
 

TArgument.hh284 行で定義されています。

参照 Tstring.

Tbool TArgument::HasOption const Tstring optionname  )  const [inline]
 

TArgument.hh181 行で定義されています。

参照 TOptionMap::HasOption(), と Tbool.

Tbool TArgument::HasOption const TOption &  option  )  const [inline]
 

TArgument.hh176 行で定義されています。

参照 TOptionMap::HasOption(), と Tbool.

Tstring TArgument::operator[] const Tstring optionname  )  const [inline]
 

TArgument.hh279 行で定義されています。

参照 GetParameter(), と Tstring.

Tstring TArgument::operator[] const TOption &  option  )  const [inline]
 

TArgument.hh274 行で定義されています。

参照 GetParameter(), と Tstring.

Tstring TArgument::operator[] Tint  index  )  const [inline]
 

TArgument.hh269 行で定義されています。

参照 GetElement(), index(), と Tstring.

Tvoid TArgument::SetUsage const Tstring usage  )  [inline]
 

TArgument.hh289 行で定義されています。

参照 Tvoid.

Tvoid TArgument::ShowHelp  )  const
 

TArgument.cc211 行で定義されています。

参照 Tcout, Tendl, と Tvoid.

呼出 TArgument().

Tvoid TArgument::ShowUsage  )  const
 

TArgument.cc204 行で定義されています。

参照 Tcout, Tendl, と Tvoid.

呼出 Analyse().

Tvoid TArgument::ShowVersion  )  const
 

TArgument.cc218 行で定義されています。

参照 Tcout, Tendl, と Tvoid.

呼出 TArgument().


フレンドと関連する関数の解説

Tostream& operator<< Tostream tos,
const TArgument &  right
[friend]
 

TArgument.cc164 行で定義されています。


このクラスの解説は次のファイルから生成されました:

CLDAQ - a Class Library for DataAcQuisition (Version 1.14.3)
Go IWAI -- goiwai at users.sourceforge.jp