データ構造 | 型定義 | 関数 | 変数
コマンドライン引数の解析

データ構造

class  mist::options
 コマンドライン引数を解析するクラス [詳細]

型定義

typedef std::vector< std::string > mist::options::base
 基底クラス

関数

 mist::options::arg::arg (const std::string &aname="", const std::string &text="", const std::string &val="", bool hasValue=false)
 デフォルトコンストラクタ
 mist::options::arg::arg (const arg &p)
 コピーコンストラクタ
 mist::options::options (const std::string header="", const std::string footer="")
 デフォルトコンストラクタ
 mist::options::options (const options &o)
 コピーコンストラクタ
bool mist::options::__isset__ (const std::string &name, std::string &val) const
 オプションに指定されている値を取得する
void mist::options::add (const std::string &name, const std::string &comment)
 値無しのオプションを追加する
void mist::options::add (const std::string &name, const std::string &comment, const std::string &default_value)
 値を含むオプションを追加する(デフォルト値を指定するとオプションが指定されない場合も値を取得可能)
void mist::options::add (const std::string &name, const std::string &comment, int default_value)
 値を含むオプションを追加する(デフォルト値を指定するとオプションが指定されない場合も値を取得可能)
void mist::options::add (const std::string &name, const std::string &comment, double default_value)
 値を含むオプションを追加する(デフォルト値を指定するとオプションが指定されない場合も値を取得可能)
bool mist::options::isset (const std::string &name) const
 オプションがコマンドライン引数無いに指定されたかどうかを調べる
const std::string mist::options::get_string (const std::string &name) const
 オプションに指定された文字列を取得する
int mist::options::get_int (const std::string &name) const
 オプションに指定された値を取得する
double mist::options::get_double (const std::string &name) const
 オプションに指定された値を取得する
void mist::options::show_help () const
 オプションの一覧を標準出力に表示する
bool mist::options::parse_args (int argc, char *argv[])
 プログラム引数を解析して,オプションとの対応関係を求める

変数

std::string mist::options::arg::name
 オプション名
std::string mist::options::arg::comment
 オプションの説明
std::string mist::options::arg::value
 オプションの値
bool mist::options::arg::has_value
 値と共に指定されるオプションかどうかを示すフラグ
bool mist::options::arg::found
 オプションに指定されたかどうか

説明

次のヘッダをインクルードする

Generated on Wed Nov 12 2014 19:44:28 for MIST by doxygen 1.8.1.2