KiCad PCB EDA Suite
Loading...
Searching...
No Matches
allegro_test_utils.h
Go to the documentation of this file.
1
2
3#pragma once
4
5#include <memory>
6#include <ostream>
7
10
12
13
14class PCB_IO_ALLEGRO;
15
16namespace ALLEGRO
17{
18
19std::ostream& boost_test_print_type( std::ostream& os, FMT_VER const& aFmtVer );
20
21} // namespace ALLEGRO
22
23
24namespace KI_TEST
25{
26
27std::string AllegroBoardDataDir( const std::string& aBoardName );
28std::string AllegroBoardFile( const std::string& aFileName );
29
35{
36public:
38
43
44protected:
48 BOARD* getCachedBoard( const std::string& aFilePath, bool aForceReload, REPORTER* aReporter ) override;
49
50private:
52
53 std::unique_ptr<PCB_IO_ALLEGRO> m_allegroPlugin;
54};
55
56}; // namespace KI_TEST
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:322
static ALLEGRO_CACHED_LOADER & GetInstance()
Get the singleton instance of the Allegro board cache loader.
BOARD * getCachedBoard(const std::string &aFilePath, bool aForceReload, REPORTER *aReporter) override
Implementation of CACHED_BOARD_LOADER interface with our Allegro PCB_IO plugin.
std::unique_ptr< PCB_IO_ALLEGRO > m_allegroPlugin
Manager for caching loaded boards in memory, to avoid repeatedly loading and parsing the same board.
A pure virtual class used to derive REPORTER objects from.
Definition reporter.h:73
FMT_VER
The format of an Allego file.
std::ostream & boost_test_print_type(std::ostream &os, FMT_VER const &aFmtVer)
std::string AllegroBoardDataDir(const std::string &aBoardName)
std::string AllegroBoardFile(const std::string &aFileName)