OSDN Git Service

cache
[psychlops/cpp.git] / psychlops / core / ApplicationInterfaces / psychlops_app_info.h
1 /*
2  *  psychlops_app_info.h
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 #ifndef HEADER_PSYCHLOPS_APPLICATION_INTERFACES_INFORMATION
10 #define HEADER_PSYCHLOPS_APPLICATION_INTERFACES_INFORMATION
11
12
13 #include <vector>
14 #include <string>
15 //#include "../../Specific/ApplicationInterfaces/psychlops_app_state.h"
16
17
18 namespace Psychlops {
19
20         class APIApplicationProperties;
21         class AppState {
22                 private:
23                 static APIApplicationProperties *api_;
24
25                 public:
26                 static const int ImageByteAlignment = 4;
27                 enum ThreadPriority { HIGH=0, NORMAL, LOW, IDLE, SLEEP };
28                 static void setThreadPriority( ThreadPriority priority );
29                 static ThreadPriority getThreadPriority();
30                 static void initialize();
31
32                 static void alert(std::string message);
33                 static bool shouldBeClose;
34
35                 static int createSynchronousProcess(std::string command);
36         };
37
38         class AppInfo {
39                 private:
40
41                 public:
42                 static int argc;
43                 static char **argv;
44                 static std::vector<std::string> args;
45                 static std::string appname;
46                 static std::string expname;
47         };\r
48
49
50 }       /*      <- namespace Psychlops  */
51
52
53 #endif