クラスPropertyCollection

プロパティ コレクションからプロパティ値を取得または設定するクラス。

メンバー

~PropertyCollection

構文: public inline ~PropertyCollection ( );

デストラクターです。

プロパティを設定

構文: public inline void SetProperty ( PropertyId propertyID , const std::string & value );

プロパティの値を設定します。

パラメーター

  • propertyID プロパティの ID。 PropertyId を参照する

  • 設定する value

プロパティを設定

構文: public inline void SetProperty ( const std::string & propertyName , const std::string & value );

プロパティの値を設定します。

パラメーター

  • propertyName プロパティの名前。

  • 設定する value

GetProperty

構文: public inline std::string GetProperty ( PropertyId propertyID , const std::string & defaultValue ) const;

プロパティの値を返します。 プロパティ値が定義されていない場合は、指定した既定値が返されます。

パラメーター

  • propertyID プロパティの ID。 PropertyId を参照する

  • defaultValue プロパティに値が定義されていない場合に返される既定値 (既定では空の文字列)。

返品ポリシー

プロパティの値。

GetProperty

構文: public inline std::string GetProperty ( const std::string & propertyName , const std::string & defaultValue ) const;

プロパティの値を返します。 プロパティ値が定義されていない場合は、指定した既定値が返されます。

パラメーター

  • propertyName プロパティの名前。

  • defaultValue プロパティに値が定義されていない場合に返される既定値 (既定では空の文字列)。

返品ポリシー

プロパティの値。