DAVID4 SDK  1.8.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
TurntableJsonRpc.h
1 //=============================================================================
2 // See License in Related Pages
3 //=============================================================================
4 
5 #pragma once
6 
7 #ifndef DAVID_SDK_TURNTABLE_JSON_RPC_H
8 #define DAVID_SDK_TURNTABLE_JSON_RPC_H
9 
10 #include "davidSDK/ClientJsonRpc.h"
11 
12 //=============================================================================
13 // Turntable
14 //=============================================================================
15 
16 namespace david {
17 
18 /// Implements interface functions of 'ITurntable'.
19 /// All calls are delegated to a JSON-RPC 2.0 client.
21 {
22 public:
23  /// Constructor.
24  /// @param[in,out] client Valid pointer to client implementation.
26 
27  // See ITurntable
28  virtual ~TurntableJsonRpc();
29 
30  // See ITurntable
31  virtual void Setup(bool enable);
32 
33  // See ITurntable
34  virtual void Rotate(double degrees);
35 
36 private:
37  //-------------------------------------------------------------------------
38  // Private member variables
39  //-------------------------------------------------------------------------
40 
41  ClientJsonRpc* m_client; ///< Client implementation
42 };
43 
44 
45 } // namespace
46 
47 #endif // DAVID_SDK_TURNTABLE_JSON_RPC_H