bioweb  0.09.92
C++/Python(django)/JavaScript(angularJS) framework
calc.cpp
Go to the documentation of this file.
1 
5 #include "calc.hpp"
6 
7 #include <mt4cpp/TickCommand.hpp>
8 
9 //implementation
10 CALC_DLL( int getNumber() ) {
11  return 1234;
12 }
13 
14 CommandManager::CommandManager() : scheduler_(16), history_ () {
15 }
16 
17 CommandManager& CommandManager::getInstance() {
18  static CommandManager instance;
19  return instance;
20 }
21 
22 mt4cpp::CommandID CommandManager::runTickCommand(int steps ) {
23  return mt4cpp::executeAsynchronouslyAndRemember(scheduler_, history_, mt4cpp::PCommand(new mt4cpp::TickCommand(steps) ) );
24 }
25 
26 std::vector<mt4cpp::CommandID> CommandManager::commandKeys() const {
27  return history_.keys();
28 }
29 
30 mt4cpp::CommandDesc CommandManager::findCommandDesc(mt4cpp::CommandID id) const {
31  return mt4cpp::findCommandDescriptor(history_, id);
32 }
33 
34 void CommandManager::clearHistory() {
35  history_.clear();
36 }
class CALC_DLL(CommandManager)
Example C++ calculation. This function return a number.
Definition: calc.hpp:33
the C++ calculation library interface