bioweb  0.09.92
C++/Python(django)/JavaScript(angularJS) framework
calc.hpp
Go to the documentation of this file.
1 
6 #ifndef CALC_HPP
7 #define CALC_HPP
8 
9 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
10 //msvc disable warnings for sheduler_ and history_ member
11 #pragma warning(disable:4251)
12 #endif
13 
14 
15 #ifdef CALC_EXPORTS
16 
17 #define CALC_DLL(X) __declspec(dllexport)X
18 #else
19 
20 #define CALC_DLL(X) X
21 #endif
22 
24 CALC_DLL( int getNumber(); )
25 
26 
27 #include <mt4cpp/Scheduler.hpp>
28 #include <mt4cpp/CommandHistory.hpp>
29 
33 class CALC_DLL( CommandManager ) {
34 public:
35  static CommandManager& getInstance();
36 
38  mt4cpp::CommandID runTickCommand( int steeps = 10 );
39 
41  std::vector<mt4cpp::CommandID> commandKeys() const;
42 
44  mt4cpp::CommandDesc findCommandDesc(mt4cpp::CommandID id) const;
45 
46  void clearHistory();
47 private:
48  CommandManager();
49 
50  mt4cpp::Scheduler scheduler_;
51  mt4cpp::CommandHistory history_;
52 
53  CommandManager(const CommandManager&) = delete;
54  CommandManager operator=(const CommandManager&) = delete;
55 };
56 
57 
58 #endif //CALC_HPP
#define CALC_DLL(X)
Definition: calc.hpp:20