Mercurial > hg > orthanc-stone
comparison Applications/Commands/BaseCommandBuilder.cpp @ 458:e74f9271d653 am-touch-events
removed/updated logs
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 29 Jan 2019 14:48:59 +0100 |
parents | b70e9be013e4 |
children |
comparison
equal
deleted
inserted
replaced
457:3b4df9925db6 | 458:e74f9271d653 |
---|---|
32 throw StoneException(ErrorCode_CommandJsonInvalidFormat); | 32 throw StoneException(ErrorCode_CommandJsonInvalidFormat); |
33 } | 33 } |
34 | 34 |
35 if (commandJson["commandType"].isString() && commandJson["commandType"].asString() == "generic-no-arg-command") | 35 if (commandJson["commandType"].isString() && commandJson["commandType"].asString() == "generic-no-arg-command") |
36 { | 36 { |
37 printf("creating a simple command\n"); | 37 return new GenericNoArgCommand(commandJson["command"].asString().c_str()); |
38 return new GenericNoArgCommand(commandJson["command"].asString().c_str()); | |
39 } | 38 } |
40 else if (commandJson["commandType"].isString() && commandJson["commandType"].asString() == "generic-one-string-arg-command") | 39 else if (commandJson["commandType"].isString() && commandJson["commandType"].asString() == "generic-one-string-arg-command") |
41 { | 40 { |
42 printf("creating a simple command\n"); | 41 // TODO: we should create a command with a string arg ! |
43 return new GenericNoArgCommand(commandJson["command"].asString().c_str()); | 42 return new GenericNoArgCommand(commandJson["command"].asString().c_str()); |
44 } | 43 } |
45 | 44 |
46 return NULL; | 45 return NULL; |
47 } | 46 } |
48 | 47 |