KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB_FEATURE Class Referenceabstract

#include <odb_feature.h>

Inheritance diagram for ODB_FEATURE:
ATTR_RECORD_WRITER ODB_ARC ODB_LINE ODB_PAD ODB_SURFACE

Public Member Functions

 ODB_FEATURE (uint32_t aIndex)
 
virtual void WriteFeatures (std::ostream &ost)
 
virtual ~ODB_FEATURE ()=default
 
void WriteAttributes (std::ostream &ost) const
 

Public Attributes

std::map< unsigned int, std::string > attributes
 

Protected Types

enum class  FEATURE_TYPE { LINE , ARC , PAD , SURFACE }
 

Protected Member Functions

virtual FEATURE_TYPE GetFeatureType ()=0
 
virtual void WriteRecordContent (std::ostream &ost)=0
 

Protected Attributes

const uint32_t m_index
 

Detailed Description

Definition at line 200 of file odb_feature.h.

Member Enumeration Documentation

◆ FEATURE_TYPE

enum class ODB_FEATURE::FEATURE_TYPE
strongprotected
Enumerator
LINE 
ARC 
PAD 
SURFACE 

Definition at line 210 of file odb_feature.h.

Constructor & Destructor Documentation

◆ ODB_FEATURE()

ODB_FEATURE::ODB_FEATURE ( uint32_t  aIndex)
inline

Definition at line 204 of file odb_feature.h.

◆ ~ODB_FEATURE()

virtual ODB_FEATURE::~ODB_FEATURE ( )
virtualdefault

Member Function Documentation

◆ GetFeatureType()

virtual FEATURE_TYPE ODB_FEATURE::GetFeatureType ( )
protectedpure virtual

Implemented in ODB_LINE, ODB_ARC, ODB_PAD, and ODB_SURFACE.

Referenced by WriteFeatures().

◆ WriteAttributes()

void ATTR_RECORD_WRITER::WriteAttributes ( std::ostream &  ost) const
inherited

◆ WriteFeatures()

void ODB_FEATURE::WriteFeatures ( std::ostream &  ost)
virtual

Definition at line 838 of file odb_feature.cpp.

References ARC, GetFeatureType(), LINE, PAD, SURFACE, and WriteRecordContent().

◆ WriteRecordContent()

virtual void ODB_FEATURE::WriteRecordContent ( std::ostream &  ost)
protectedpure virtual

Implemented in ODB_LINE, ODB_ARC, ODB_PAD, and ODB_SURFACE.

Referenced by WriteFeatures().

Member Data Documentation

◆ attributes

std::map<unsigned int, std::string> ATTR_RECORD_WRITER::attributes
inherited

Definition at line 348 of file odb_attribute.h.

Referenced by ATTR_RECORD_WRITER::WriteAttributes().

◆ m_index

const uint32_t ODB_FEATURE::m_index
protected

Definition at line 222 of file odb_feature.h.


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