OSDN Git Service

first
[psychlops/cpp.git] / psychlops / core / ApplicationInterfaces / psychlops_app_info.cpp
1 /*
2  *  psychlops_app_info.cpp
3  *  Psychlops Standard Library (Universal)
4  *
5  *  Last Modified 2005/12/17 by Kenchi HOSOKAWA
6  *  (C) 2005 Kenchi HOSOKAWA, Kazushi MARUYA, Takao SATO
7  */
8
9
10 #include <string>
11
12 #include "psychlops_app_info.h"
13 #include "../devices/psychlops_io_file.h"
14
15 #define PSYCHLOPS_APPSTATE_API_PLATFORM
16 #include "../../platform/psychlops_platform_selector.h"
17 #include "psychlops_app_thread.h"
18
19 namespace Psychlops {
20
21
22
23         APIApplicationProperties *(AppState::api_);
24         bool AppState::shouldBeClose = false;
25
26         void AppState::initialize() {
27                 api_ = &(APIApplicationProperties::startupinfo);
28                 setThreadPriority(NORMAL);
29         }
30         void AppState::setThreadPriority( ThreadPriority priority ) {
31                 api_->setThreadPriority(priority);
32                 //Prototype::Thread::priority( priority );
33         }
34         AppState::ThreadPriority AppState::getThreadPriority() {
35                 return (ThreadPriority)api_->getThreadPriority();
36                 //return Prototype::Thread::priority();
37         }
38
39         int AppInfo::argc;
40         char **(AppInfo::argv);
41         std::vector<std::string> AppInfo::args;
42         std::string AppInfo::appname = "Psychlops";
43         std::string AppInfo::expname = "";
44
45
46 }       /*      <- namespace Psychlops  */
47