Instrument Neutral Distributed Interface INDI 2.2.5
IKunFocuserProtocol Namespace Reference

Classes

struct  MotionStatus

Functions

bool parseMotionStatus (const std::string &response, MotionStatus &status)
bool parseVersion (const std::string &response, int &version)
bool parseJsonInteger (const std::string &json, const std::string &key, int64_t &value)
bool parseJsonNumber (const std::string &json, const std::string &key, double &value)
bool parseJsonBoolean (const std::string &json, const std::string &key, bool &value)
bool isErrorResponse (const std::string &response)
bool isSupportedIdentity (const std::string &response)
const char * modelForVersion (int version)
bool isSupportedVersion (int version)

Function Documentation

◆ isErrorResponse()

bool IKunFocuserProtocol::isErrorResponse ( const std::string & response)

Definition at line 136 of file ikunfocuser_protocol.cpp.

◆ isSupportedIdentity()

bool IKunFocuserProtocol::isSupportedIdentity ( const std::string & response)

Definition at line 141 of file ikunfocuser_protocol.cpp.

◆ isSupportedVersion()

bool IKunFocuserProtocol::isSupportedVersion ( int version)

Definition at line 157 of file ikunfocuser_protocol.cpp.

◆ modelForVersion()

const char * IKunFocuserProtocol::modelForVersion ( int version)

Definition at line 146 of file ikunfocuser_protocol.cpp.

◆ parseJsonBoolean()

bool IKunFocuserProtocol::parseJsonBoolean ( const std::string & json,
const std::string & key,
bool & value )

Definition at line 115 of file ikunfocuser_protocol.cpp.

◆ parseJsonInteger()

bool IKunFocuserProtocol::parseJsonInteger ( const std::string & json,
const std::string & key,
int64_t & value )

Definition at line 83 of file ikunfocuser_protocol.cpp.

◆ parseJsonNumber()

bool IKunFocuserProtocol::parseJsonNumber ( const std::string & json,
const std::string & key,
double & value )

Definition at line 99 of file ikunfocuser_protocol.cpp.

◆ parseMotionStatus()

bool IKunFocuserProtocol::parseMotionStatus ( const std::string & response,
MotionStatus & status )

Definition at line 40 of file ikunfocuser_protocol.cpp.

◆ parseVersion()

bool IKunFocuserProtocol::parseVersion ( const std::string & response,
int & version )

Definition at line 66 of file ikunfocuser_protocol.cpp.