|
KiCad PCB EDA Suite
|
#include <api_e2e_utils.h>
Public Member Functions | |
| API_TEST_CLIENT () | |
| bool | Connect (const wxString &aSocketUrl) |
| void | Disconnect () |
| 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 | CreateDocument (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) |
| bool | CloseAllDocuments () |
| 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 | |
| bool | send (const google::protobuf::Message &aRequest, kiapi::common::ApiResponse &aResponse) |
Private Attributes | |
| KICAD_API_CLIENT | m_client |
| wxString | m_lastError |
Definition at line 108 of file api_e2e_utils.h.
|
inline |
Definition at line 111 of file api_e2e_utils.h.
References m_client.
|
inline |
Definition at line 341 of file api_e2e_utils.h.
References send().
Referenced by API_SERVER_E2E_FIXTURE::~API_SERVER_E2E_FIXTURE().
|
inline |
Definition at line 316 of file api_e2e_utils.h.
References m_lastError, and send().
|
inline |
Definition at line 113 of file api_e2e_utils.h.
References m_client.
|
inline |
Definition at line 189 of file api_e2e_utils.h.
References m_lastError, and send().
|
inline |
Definition at line 114 of file api_e2e_utils.h.
References m_client.
|
inline |
Definition at line 264 of file api_e2e_utils.h.
References FOOTPRINT::Deserialize(), m_lastError, and send().
|
inline |
Definition at line 227 of file api_e2e_utils.h.
References m_lastError, and send().
|
inline |
Definition at line 132 of file api_e2e_utils.h.
References m_lastError, and send().
|
inline |
Definition at line 116 of file api_e2e_utils.h.
References m_lastError.
Referenced by SendGetBoardDesignRules(), and SendGetCustomDesignRules().
|
inline |
Definition at line 222 of file api_e2e_utils.h.
References OpenDocument().
|
inline |
Definition at line 157 of file api_e2e_utils.h.
References m_lastError, and send().
Referenced by OpenDocument().
|
inline |
Definition at line 118 of file api_e2e_utils.h.
References send().
|
inline |
Send an arbitrary job request and receive a RunJobResponse.
Definition at line 353 of file api_e2e_utils.h.
References m_lastError, send(), and T.
|
inlineprivate |
Definition at line 382 of file api_e2e_utils.h.
References m_client, and m_lastError.
Referenced by CloseAllDocuments(), CloseDocument(), CreateDocument(), GetFirstFootprint(), GetItemsCount(), GetVersion(), OpenDocument(), Ping(), RunJob(), and SendCommand().
|
inline |
Definition at line 376 of file api_e2e_utils.h.
Referenced by SendGetBoardDesignRules(), and SendGetCustomDesignRules().
|
private |
Definition at line 393 of file api_e2e_utils.h.
Referenced by API_TEST_CLIENT(), Connect(), Disconnect(), and send().
|
private |
Definition at line 394 of file api_e2e_utils.h.
Referenced by CloseDocument(), CreateDocument(), GetFirstFootprint(), GetItemsCount(), GetVersion(), LastError(), OpenDocument(), RunJob(), and send().