dji_mop_client.hpp
Go to the documentation of this file.
1 
29 #ifndef DJI_MOP_CLIENT_HPP
30 #define DJI_MOP_CLIENT_HPP
31 
32 #include "dji_mop_pipeline.hpp"
34 
35 namespace DJI {
36 namespace OSDK {
37 
38 // Forward Declarations
39 class Vehicle;
40 
43 class MopClient : MopPipelineManagerBase {
44  public:
45  MopClient(SlotType slot);
46  ~MopClient();
60  MopErrCode connect(PipelineID id, PipelineType type, MopPipeline *&p);
61 
81  void connect(PipelineID id, PipelineType type,
82  void (*cb)(MopErrCode errCode, MopPipeline *p,
83  void *userData),
84  void *userData);
85 
94  MopErrCode disconnect(PipelineID id);
95 
109  void disconnect(PipelineID id,
110  void (*cb)(MopErrCode errCode, void *userData),
111  void *userData);
112 
113  private:
114  Vehicle *vehicle;
115  SlotType slot;
116 };
117 
118 }
119 }
120 
121 
122 #endif //DJI_MOP_CLIENT_HPP
MopErrCode connect(PipelineID id, PipelineType type, MopPipeline *&p)
Connect the target device by a pipelineid with properties of pipeline type. If success,...
Implementation of mop pipeline.
Class providing APIs & data structures MOP pipeline operations.
Definition: dji_mop_pipeline.hpp:43
Implementation of mop pipeline manager base.
uint16_t PipelineID
Definition: dji_mop_define.hpp:78
Definition: dji_ack.cpp:38
MopErrCode disconnect(PipelineID id)
Disonnect the target device by a pipelineid.
Class providing APIs & data structures for acting as a MOP client.
Definition: dji_mop_client.hpp:43