20#ifndef KIFACE_SERVICES_H
21#define KIFACE_SERVICES_H
47template <KIFACE_ADDR_ID aId,
typename T>
80 const wxString&,
const wxString&, bool, bool,
85 const wxString&,
const wxString&, wxWindow*,
99 void (*)(
const wxString&,
PROJECT*, std::set<wxString>& )>;
107template <
typename Service,
typename T>
110 static_assert( std::is_same_v<T, typename Service::Type>,
111 "KIFACE service address does not match its service descriptor" );
112 return reinterpret_cast<void*
>( aAddress );
121template <
typename Service>
127 return reinterpret_cast<typename Service::Type
>( aKiface->
IfaceOrAddress( Service::Id ) );
Keeps the documents drawn on a pair of diff canvases alive.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Container for project specific data.
A pure virtual class used to derive REPORTER objects from.
KIFACE_ADDR_ID
IDs of objects that may be returned by KIFACE::IfaceOrAddress.
@ KIFACE_TEST_FOOTPRINT_LINK
@ KIFACE_FILTER_FOOTPRINT_USERS
Function pointer type: wxString (*)(const wxString& aQueryJson) Input JSON: the object written by FOO...
@ KIFACE_MERGE_DOCUMENT
int (*)( int aKind, const wxString& aAncestor, const wxString& aOurs, const wxString& aTheirs,...
@ KIFACE_FOOTPRINTS_LOAD_PROGRESS
Function pointer type: float (*)() Returns how far the library loader has gotten as a fraction of the...
@ KIFACE_NETLIST_SCHEMATIC
@ KIFACE_FILTER_FOOTPRINTS
Function pointer type: wxString (*)(const wxString& aFilterJson) Input JSON: {"pin_count": N,...
@ KIFACE_TRIGGER_FOOTPRINTS_LOAD
Function pointer type: bool (*)() Starts loading the footprint libraries in the background.
@ KIFACE_TRIGGER_SYMBOLS_LOAD
Function pointer type: bool (*)() Starts loading the symbol libraries in the background.
@ KIFACE_ATTACH_DIFF_CANVASES
KICAD_DIFF::DIFF_CANVAS_CONTEXT* (*)( int aKind, const wxString& aFileA, const wxString& aFileB,...
@ KIFACE_OPEN_DIFF_DIALOG
int (*)( int aKind, const wxString& aFileA, const wxString& aFileB, const wxString& aLabelA,...
@ KIFACE_SYMBOLS_LOAD_PROGRESS
Function pointer type: float (*)() Returns how far the library loader has gotten as a fraction of the...
@ KIFACE_FOOTPRINT_PAD_NUMBERS
Function pointer type: void (*)( const wxString& aFootprint, PROJECT* aProject, std::set<wxString>& a...
KIFACE_SERVICE< KIFACE_FILTER_FOOTPRINTS, wxString(*)(const wxString &)> KIFACE_FILTER_FOOTPRINTS_SERVICE
KIFACE_SERVICE< KIFACE_FILTER_FOOTPRINT_USERS, wxString(*)(const wxString &)> KIFACE_FILTER_FOOTPRINT_USERS_SERVICE
Service::Type GetKifaceService(KIFACE *aKiface)
Look up a service exported by a KIFACE.
KIFACE_SERVICE< KIFACE_TEST_FOOTPRINT_LINK, int(*)(const wxString &, PROJECT *)> KIFACE_TEST_FOOTPRINT_LINK_SERVICE
KIFACE_SERVICE< KIFACE_ATTACH_DIFF_CANVASES, KICAD_DIFF::DIFF_CANVAS_CONTEXT *(*)(int, const wxString &, const wxString &, WIDGET_DIFF_CANVAS *, WIDGET_DIFF_CANVAS *, KICAD_DIFF::DOCUMENT_DIFF *, REPORTER *)> KIFACE_ATTACH_DIFF_CANVASES_SERVICE
KIFACE_SERVICE< KIFACE_OPEN_DIFF_DIALOG, int(*)(int, const wxString &, const wxString &, const wxString &, const wxString &, wxWindow *, REPORTER *)> KIFACE_OPEN_DIFF_DIALOG_SERVICE
void * KifaceServiceAddress(T aAddress)
Return a service address for IfaceOrAddress().
KIFACE_SERVICE< KIFACE_FOOTPRINT_LIBRARY_ADAPTER, FOOTPRINT_LIBRARY_ADAPTER * > KIFACE_FOOTPRINT_LIBRARY_ADAPTER_SERVICE
KIFACE_SERVICE< KIFACE_MERGE_DOCUMENT, int(*)(int, const wxString &, const wxString &, const wxString &, const wxString &, bool, bool, REPORTER *)> KIFACE_MERGE_DOCUMENT_SERVICE
KIFACE_SERVICE< KIFACE_SYMBOLS_LOAD_PROGRESS, float(*)()> KIFACE_SYMBOLS_LOAD_PROGRESS_SERVICE
KIFACE_SERVICE< KIFACE_FOOTPRINT_PAD_NUMBERS, void(*)(const wxString &, PROJECT *, std::set< wxString > &)> KIFACE_FOOTPRINT_PAD_NUMBERS_SERVICE
KIFACE_SERVICE< KIFACE_TRIGGER_SYMBOLS_LOAD, bool(*)()> KIFACE_TRIGGER_SYMBOLS_LOAD_SERVICE
KIFACE_SERVICE< KIFACE_FOOTPRINTS_LOAD_PROGRESS, float(*)()> KIFACE_FOOTPRINTS_LOAD_PROGRESS_SERVICE
KIFACE_SERVICE< KIFACE_NETLIST_SCHEMATIC, bool(*)(const wxString &, std::string &, KIWAY *)> KIFACE_NETLIST_SCHEMATIC_SERVICE
KIFACE_SERVICE< KIFACE_TRIGGER_FOOTPRINTS_LOAD, bool(*)()> KIFACE_TRIGGER_FOOTPRINTS_LOAD_SERVICE
The full set of changes between two parsed documents of one type.
Describes an object or function exported by a KIFACE through IfaceOrAddress()
static constexpr KIFACE_ADDR_ID Id
Implement a participant in the KIWAY alchemy.
virtual void * IfaceOrAddress(int aDataId)=0
Return pointer to the requested object.