|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <primalucacommandset.h>
Public Member Functions | |
| Communication (const std::string &name, int port) | |
| const char * | getDeviceName () |
| bool | sendRequest (const json &command, json *response=nullptr) |
| template<typename T = int32_t> | |
| bool | genericRequest (const std::string &node, const std::string &type, const json &command, T *response=nullptr) |
| template<typename T = int32_t> | |
| bool | get (NodeType type, const std::string ¶meter, T &value) |
| bool | getStringAsDouble (NodeType type, const std::string ¶meter, double &value) |
| getStringAsDouble Same as get, but it receives a string and scan it for double. | |
| bool | set (NodeType type, const json &value) |
| template<typename T = int32_t> | |
| bool | command (NodeType type, const json &jsonCommand) |
Definition at line 71 of file primalucacommandset.h.
|
inlineexplicit |
Definition at line 75 of file primalucacommandset.h.
| bool PrimalucaLabs::Communication::command | ( | NodeType | type, |
| const json & | jsonCommand | ||
| ) |
Definition at line 227 of file primalucacommandset.cpp.
| bool PrimalucaLabs::Communication::genericRequest | ( | const std::string & | node, |
| const std::string & | type, | ||
| const json & | command, | ||
| T * | response = nullptr |
||
| ) |
Definition at line 163 of file primalucacommandset.cpp.
| bool PrimalucaLabs::Communication::get | ( | NodeType | type, |
| const std::string & | parameter, | ||
| T & | value | ||
| ) |
Definition at line 123 of file primalucacommandset.cpp.
|
inline |
Definition at line 76 of file primalucacommandset.h.
| bool PrimalucaLabs::Communication::getStringAsDouble | ( | NodeType | type, |
| const std::string & | parameter, | ||
| double & | value | ||
| ) |
getStringAsDouble Same as get, but it receives a string and scan it for double.
| type | motor type |
| parameter | parameter name |
| value | value to store the scanned double value. |
Definition at line 112 of file primalucacommandset.cpp.
Definition at line 57 of file primalucacommandset.cpp.
Definition at line 142 of file primalucacommandset.cpp.