KiCad PCB EDA Suite
TEST_SCH_SHEET_PATH_FIXTURE Class Reference

Public Member Functions

 TEST_SCH_SHEET_PATH_FIXTURE ()
 

Public Attributes

SCH_SHEET_PATH m_empty_path
 
SCH_SHEET_PATH m_linear
 We look at sheet 2 in the hierarchy: Sheets: 0 -> 1 -> 2. More...
 
std::vector< SCH_SHEETm_sheets
 handy store of SCH_SHEET objects More...
 

Detailed Description

Definition at line 40 of file test_sch_sheet_path.cpp.

Constructor & Destructor Documentation

◆ TEST_SCH_SHEET_PATH_FIXTURE()

TEST_SCH_SHEET_PATH_FIXTURE::TEST_SCH_SHEET_PATH_FIXTURE ( )
inline

Definition at line 43 of file test_sch_sheet_path.cpp.

44 {
45 for( unsigned i = 0; i < 4; ++i )
46 {
47 m_sheets.emplace_back( nullptr, wxPoint( i, i ) );
48
49 std::ostringstream ss;
50 ss << "Sheet" << i;
51 m_sheets[i].GetFields()[SHEETNAME].SetText( ss.str() );
52 }
53
54 // 0->1->2
58 }
void push_back(SCH_SHEET *aSheet)
Forwarded method from std::vector.
std::vector< SCH_SHEET > m_sheets
handy store of SCH_SHEET objects
SCH_SHEET_PATH m_linear
We look at sheet 2 in the hierarchy: Sheets: 0 -> 1 -> 2.
@ SHEETNAME
Definition: sch_sheet.h:43

References m_linear, m_sheets, SCH_SHEET_PATH::push_back(), and SHEETNAME.

Member Data Documentation

◆ m_empty_path

SCH_SHEET_PATH TEST_SCH_SHEET_PATH_FIXTURE::m_empty_path

Definition at line 60 of file test_sch_sheet_path.cpp.

◆ m_linear

SCH_SHEET_PATH TEST_SCH_SHEET_PATH_FIXTURE::m_linear

We look at sheet 2 in the hierarchy: Sheets: 0 -> 1 -> 2.

Definition at line 66 of file test_sch_sheet_path.cpp.

Referenced by TEST_SCH_SHEET_PATH_FIXTURE().

◆ m_sheets

std::vector<SCH_SHEET> TEST_SCH_SHEET_PATH_FIXTURE::m_sheets

handy store of SCH_SHEET objects

Definition at line 69 of file test_sch_sheet_path.cpp.

Referenced by TEST_SCH_SHEET_PATH_FIXTURE().


The documentation for this class was generated from the following file: