Instrument Neutral Distributed Interface INDI
2.0.2
|
#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. More... | |
bool | set (NodeType type, const json &value) |
template<typename T = int32_t> | |
bool | command (NodeType type, const json &jsonCommand) |
Definition at line 66 of file primalucacommandset.h.
|
inlineexplicit |
Definition at line 70 of file primalucacommandset.h.
bool PrimalucaLabs::Communication::command | ( | NodeType | type, |
const json & | jsonCommand | ||
) |
Definition at line 221 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 157 of file primalucacommandset.cpp.
bool PrimalucaLabs::Communication::get | ( | NodeType | type, |
const std::string & | parameter, | ||
T & | value | ||
) |
Definition at line 117 of file primalucacommandset.cpp.
|
inline |
Definition at line 71 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 106 of file primalucacommandset.cpp.
Definition at line 56 of file primalucacommandset.cpp.
Definition at line 136 of file primalucacommandset.cpp.