#include <ApplicationInitializer.h>
Public メソッド | |
void | SetPriority (long priority) |
アプリケーションの優先度を設定する。 | |
long | GetPriority () |
アプリケーションの優先度を設定する。 | |
void | SetApplication (CApplicationBase *appbase) |
アプリケーションのインスタンスを設定する。 | |
CApplicationBase * | GetApplication () |
アプリケーションのインスタンスを取得する。 | |
void | SetArgs (std::vector< std::string > &args) |
アプリケーション起動時の引数を設定する。 | |
std::vector< std::string > & | GetArgs () |
アプリケーション起動時の引数を取得する。 |
アプリケーションの初期化時に必要な情報を設定する。 AppMain関数のコール時に、本クラスのインスタンスが アプリケーションに渡され、アプリケーションは必要な情報 を本クラスへ設定する。
void Sapie::CApplicationInitializer::SetPriority | ( | long | priority | ) |
アプリケーションの優先度を設定する。
[in] | priority | アプリケーション優先度
|
long Sapie::CApplicationInitializer::GetPriority | ( | ) |
アプリケーションの優先度を設定する。
APP_PRIORITY_NORMAL | : 優先度を通常モードに設定 | |
APP_PRIORITY_HIGH | : 優先度を優先モードに設定 |
void Sapie::CApplicationInitializer::SetApplication | ( | CApplicationBase * | appbase | ) |
アプリケーションのインスタンスを設定する。
アプリケーションは、 ApplicationBaser クラスを継承した アプリケーションクラスを本メソッドを使って設定する必要がある。
[in] | appbase | アプリケーションクラスのインスタンス。 |
CApplicationBase* Sapie::CApplicationInitializer::GetApplication | ( | ) |
アプリケーションのインスタンスを取得する。
void Sapie::CApplicationInitializer::SetArgs | ( | std::vector< std::string > & | args | ) |
アプリケーション起動時の引数を設定する。
[in] | args | アプリケーション起動時の引数のリスト |
std::vector<std::string>& Sapie::CApplicationInitializer::GetArgs | ( | ) |
アプリケーション起動時の引数を取得する。