Conscience Core
CommandStorageFileDownload.h
Go to the documentation of this file.
1 #ifndef CommandStorageFileDownload_h
2 #define CommandStorageFileDownload_h
3 
4 #include "CommandCommons.h"
5 
7 
13 public:
14  inline static const CommandTypeId COMMAND_ID = "STORAGE_FILE_DOWNLOAD";
15 
20  CommandStorageFileDownload(ptr<CscEntityReflexion> entityReflexion, const string &storageRelativePath);
21 
22  optional<function<void(float progress)>> onDownloadProgress = {};
23 
24 protected:
25  const CscCommandExecutionResultFile *doExecute(CscEnvironmentSimulator &environmentSimulator) override;
26 
27  ptr<CscEntityReflexion> getEntityReflexion() const override;
28 
30  const string storageRelativePath;
31 
32  std::unique_ptr<CscLogger> logger = CscLogger::getForCategory("CommandStorageFileDownload");
33 };
34 
36 
37 }
38 
39 #endif
CSC_DLL_IMPORTEXPORT
#define CSC_DLL_IMPORTEXPORT
Definition: os.h:34
conscience_core::bridging::commands::CommandStorageFileDownload::entityReflexion
ptr< CscEntityReflexion > entityReflexion
Definition: CommandStorageFileDownload.h:29
conscience_core::bridging::commands::CommandStorageFileDownload::storageRelativePath
const string storageRelativePath
Definition: CommandStorageFileDownload.h:30
conscience_core::bridging::commands::CommandTypeId
string CommandTypeId
Definition: Command.h:29
conscience_core::bridging::commands::result::CscCommandExecutionResultFile
Definition: CommandExecutionResultFile.h:8
conscience_core::bridging::commands
Definition: cartographyCommands.cpp:29
conscience_core::bridging::commands::CscCommand
Definition: Command.h:40
nlohmann::detail::void
j template void())
Definition: json.hpp:4189
conscience_core::bridging::commands::CommandStorageFileDownload
Definition: CommandStorageFileDownload.h:12
CscEnvironmentSimulator
Definition: CscEnvironmentSimulator.h:31
conscience_core::bridging::commands::COMMAND_REGISTER
COMMAND_REGISTER(CommandFollowKinematicTrajectory, ptr< CscEntityReflexion >, int, const CscState *, string, string, string, string, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)
CommandCommons.h
conscience_core::bridging::commands::logger
std::unique_ptr< CscLogger > logger
Definition: Command.cpp:7
ptr
std::shared_ptr< T > ptr
Definition: CscCommon.h:29