KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DSN::PCB Class Reference

#include <specctra.h>

Inheritance diagram for DSN::PCB:
DSN::ELEM

Public Member Functions

 PCB (ELEM *aParent=nullptr)
 
 ~PCB ()
 
void Format (OUTPUTFORMATTER *out, int nestLevel) override
 Write this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.
 
UNIT_RESGetUnits () const override
 Return the units for this section.
 
DSN_T Type () const
 
const char * Name () const
 
virtual void FormatContents (OUTPUTFORMATTER *out, int nestLevel)
 Write the contents as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.
 
void SetParent (ELEM *aParent)
 

Protected Member Functions

std::string makeHash ()
 Return a string which uniquely represents this ELEM among other ELEMs of the same derived class as "this" one.
 

Protected Attributes

DSN_T type
 
ELEMparent
 

Static Protected Attributes

static STRING_FORMATTER sf
 

Private Attributes

std::string m_pcbname
 
PARSERm_parser
 
UNIT_RESm_resolution
 
UNIT_RESm_unit
 
STRUCTUREm_structure
 
PLACEMENTm_placement
 
LIBRARYm_library
 
NETWORKm_network
 
WIRINGm_wiring
 

Friends

class SPECCTRA_DB
 

Detailed Description

Definition at line 3182 of file specctra.h.

Constructor & Destructor Documentation

◆ PCB()

DSN::PCB::PCB ( ELEM * aParent = nullptr)
inline

◆ ~PCB()

DSN::PCB::~PCB ( )
inline

Definition at line 3198 of file specctra.h.

References m_library, m_network, m_parser, m_placement, m_resolution, m_structure, m_unit, and m_wiring.

Member Function Documentation

◆ Format()

void DSN::PCB::Format ( OUTPUTFORMATTER * out,
int nestLevel )
inlineoverridevirtual

Write this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.

Parameters
outThe formatter to write to.
nestLevelA multiple of the number of spaces to precede the output with.
Exceptions
IO_ERRORif a system error writing the output, such as a full disk.

Reimplemented from DSN::ELEM.

Definition at line 3210 of file specctra.h.

References OUTPUTFORMATTER::GetQuoteChar(), m_library, m_network, m_parser, m_pcbname, m_placement, m_resolution, m_structure, m_unit, m_wiring, DSN::ELEM::Name(), and OUTPUTFORMATTER::Print().

Referenced by main().

◆ FormatContents()

virtual void DSN::ELEM::FormatContents ( OUTPUTFORMATTER * out,
int nestLevel )
inlinevirtualinherited

Write the contents as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.

This is the same as Format() except that the outer wrapper is not included.

Parameters
outThe formatter to write to.
nestLevelA multiple of the number of spaces to precede the output with.
Exceptions
IO_ERRORif a system error writing the output, such as a full disk.

Reimplemented in DSN::CLASS_CLASS, DSN::CLASSES, DSN::COMPONENT, DSN::ELEM_HOLDER, DSN::HISTORY, DSN::IMAGE, DSN::LIBRARY, DSN::NETWORK, DSN::PADSTACK, DSN::PARSER, DSN::PLACEMENT, DSN::REGION, DSN::ROUTE, DSN::STRUCTURE, DSN::STRUCTURE_OUT, DSN::TOPOLOGY, DSN::WAS_IS, and DSN::WIRING.

Definition at line 247 of file specctra.h.

Referenced by Format(), and makeHash().

◆ GetUnits()

UNIT_RES * DSN::PCB::GetUnits ( ) const
inlineoverridevirtual

Return the units for this section.

Derived classes may override this to check for section specific overrides.

Returns
an element from a local or parent scope.

Reimplemented from DSN::ELEM.

Definition at line 3243 of file specctra.h.

References DSN::ELEM::GetUnits(), m_resolution, and m_unit.

◆ makeHash()

std::string DSN::ELEM::makeHash ( )
inlineprotectedinherited

Return a string which uniquely represents this ELEM among other ELEMs of the same derived class as "this" one.

It is not usable for all derived classes, only those which plan for it by implementing a FormatContents() function that captures all info which will be used in the subsequent string compare. THIS SHOULD NORMALLY EXCLUDE THE TYPENAME, AND INSTANCE NAME OR ID AS WELL.

Definition at line 268 of file specctra.h.

References FormatContents(), and sf.

Referenced by DSN::IMAGE::Compare(), and DSN::PADSTACK::Compare().

◆ Name()

◆ SetParent()

◆ Type()

Friends And Related Symbol Documentation

◆ SPECCTRA_DB

friend class SPECCTRA_DB
friend

Definition at line 3255 of file specctra.h.

References SPECCTRA_DB.

Referenced by SPECCTRA_DB.

Member Data Documentation

◆ m_library

LIBRARY* DSN::PCB::m_library
private

Definition at line 3263 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), Format(), DSN::SPECCTRA_DB::MakePCB(), PCB(), and ~PCB().

◆ m_network

NETWORK* DSN::PCB::m_network
private

Definition at line 3264 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), Format(), DSN::SPECCTRA_DB::MakePCB(), PCB(), and ~PCB().

◆ m_parser

PARSER* DSN::PCB::m_parser
private

Definition at line 3258 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), Format(), DSN::SPECCTRA_DB::MakePCB(), PCB(), and ~PCB().

◆ m_pcbname

std::string DSN::PCB::m_pcbname
private

Definition at line 3257 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), and Format().

◆ m_placement

PLACEMENT* DSN::PCB::m_placement
private

Definition at line 3262 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), Format(), DSN::SPECCTRA_DB::MakePCB(), PCB(), and ~PCB().

◆ m_resolution

UNIT_RES* DSN::PCB::m_resolution
private

◆ m_structure

STRUCTURE* DSN::PCB::m_structure
private

Definition at line 3261 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), Format(), DSN::SPECCTRA_DB::MakePCB(), PCB(), and ~PCB().

◆ m_unit

UNIT_RES* DSN::PCB::m_unit
private

◆ m_wiring

WIRING* DSN::PCB::m_wiring
private

Definition at line 3265 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doPCB(), Format(), DSN::SPECCTRA_DB::MakePCB(), PCB(), and ~PCB().

◆ parent

ELEM* DSN::ELEM::parent
protectedinherited

Definition at line 281 of file specctra.h.

Referenced by ELEM(), GetUnits(), and SetParent().

◆ sf

STRING_FORMATTER DSN::ELEM::sf
staticprotectedinherited

Definition at line 278 of file specctra.h.

Referenced by makeHash().

◆ type

DSN_T DSN::ELEM::type
protectedinherited

Definition at line 280 of file specctra.h.

Referenced by DSN::SPECCTRA_DB::doNET(), ELEM(), DSN::UNIT_RES::Format(), Name(), and Type().


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