|
KiCad PCB EDA Suite
|
#include <api_e2e_utils.h>
Public Member Functions | |
| API_TEST_CLIENT () | |
| ~API_TEST_CLIENT () | |
| bool | Connect (const wxString &aSocketUrl) |
| const wxString & | LastError () const |
| bool | Ping (kiapi::common::ApiStatusCode *aStatusOut=nullptr) |
| bool | GetVersion () |
| bool | OpenDocument (const wxString &aPath, kiapi::common::types::DocumentType aType, kiapi::common::types::DocumentSpecifier *aDocument=nullptr) |
| bool | OpenDocument (const wxString &aPath, kiapi::common::types::DocumentSpecifier *aDocument=nullptr) |
| bool | GetItemsCount (const kiapi::common::types::DocumentSpecifier &aDocument, kiapi::common::types::KiCadObjectType aType, int *aCount) |
| bool | GetFirstFootprint (const kiapi::common::types::DocumentSpecifier &aDocument, FOOTPRINT *aFootprint) |
| bool | CloseDocument (const kiapi::common::types::DocumentSpecifier *aDocument, kiapi::common::ApiStatusCode *aStatus=nullptr) |
| template<typename T> | |
| bool | RunJob (const T &aJobRequest, kiapi::common::types::RunJobResponse *aResponse) |
| Send an arbitrary job request and receive a RunJobResponse. | |
| template<typename T> | |
| bool | SendCommand (const T &aMessage, kiapi::common::ApiResponse *aResponse) |
Private Member Functions | |
| template<typename T> | |
| bool | sendCommand (const T &aMessage, kiapi::common::ApiResponse *aResponse) |
Private Attributes | |
| nng_socket | m_socket |
| bool | m_isOpen = false |
| bool | m_isConnected = false |
| wxString | m_lastError |
Definition at line 105 of file api_e2e_utils.h.
|
inline |
Definition at line 108 of file api_e2e_utils.h.
References m_isOpen, m_lastError, and m_socket.
|
inline |
Definition at line 125 of file api_e2e_utils.h.
|
inline |
Definition at line 319 of file api_e2e_utils.h.
References m_lastError, and sendCommand().
|
inline |
Definition at line 131 of file api_e2e_utils.h.
References m_isConnected, m_isOpen, m_lastError, and m_socket.
|
inline |
Definition at line 267 of file api_e2e_utils.h.
References FOOTPRINT::Deserialize(), m_lastError, and sendCommand().
|
inline |
Definition at line 230 of file api_e2e_utils.h.
References m_lastError, and sendCommand().
|
inline |
Definition at line 167 of file api_e2e_utils.h.
References m_lastError, and sendCommand().
|
inline |
Definition at line 151 of file api_e2e_utils.h.
References m_lastError.
Referenced by SendGetBoardDesignRules(), and SendGetCustomDesignRules().
|
inline |
Definition at line 225 of file api_e2e_utils.h.
References OpenDocument().
|
inline |
Definition at line 192 of file api_e2e_utils.h.
References m_lastError, and sendCommand().
Referenced by OpenDocument().
|
inline |
Definition at line 153 of file api_e2e_utils.h.
References sendCommand().
|
inline |
Send an arbitrary job request and receive a RunJobResponse.
Definition at line 348 of file api_e2e_utils.h.
References m_lastError, sendCommand(), and T.
|
inline |
Definition at line 371 of file api_e2e_utils.h.
References sendCommand(), and T.
Referenced by SendGetBoardDesignRules(), and SendGetCustomDesignRules().
|
inlineprivate |
Definition at line 378 of file api_e2e_utils.h.
References m_isConnected, m_lastError, m_socket, and T.
Referenced by CloseDocument(), GetFirstFootprint(), GetItemsCount(), GetVersion(), OpenDocument(), Ping(), RunJob(), and SendCommand().
|
private |
Definition at line 439 of file api_e2e_utils.h.
Referenced by Connect(), and sendCommand().
|
private |
Definition at line 438 of file api_e2e_utils.h.
Referenced by API_TEST_CLIENT(), Connect(), and ~API_TEST_CLIENT().
|
private |
Definition at line 440 of file api_e2e_utils.h.
Referenced by API_TEST_CLIENT(), CloseDocument(), Connect(), GetFirstFootprint(), GetItemsCount(), GetVersion(), LastError(), OpenDocument(), RunJob(), and sendCommand().
|
private |
Definition at line 437 of file api_e2e_utils.h.
Referenced by API_TEST_CLIENT(), Connect(), sendCommand(), and ~API_TEST_CLIENT().