7 #include <mt4cpp/TickCommand.hpp>
14 CommandManager::CommandManager() : scheduler_(16), history_ () {
17 CommandManager& CommandManager::getInstance() {
18 static CommandManager instance;
22 mt4cpp::CommandID CommandManager::runTickCommand(
int steps ) {
23 return mt4cpp::executeAsynchronouslyAndRemember(scheduler_, history_, mt4cpp::PCommand(
new mt4cpp::TickCommand(steps) ) );
26 std::vector<mt4cpp::CommandID> CommandManager::commandKeys()
const {
27 return history_.keys();
30 mt4cpp::CommandDesc CommandManager::findCommandDesc(mt4cpp::CommandID
id)
const {
31 return mt4cpp::findCommandDescriptor(history_,
id);
34 void CommandManager::clearHistory() {
class CALC_DLL(CommandManager)
Example C++ calculation. This function return a number.
the C++ calculation library interface