KiCad PCB EDA Suite
Loading...
Searching...
No Matches
odb_util.h File Reference
#include <map>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <wx/string.h>
#include "pcb_shape.h"
#include <wx/filename.h>

Go to the source code of this file.

Classes

class  ODB::EnumStringMap< T >
 
class  ODB::CHECK_ONCE
 
class  ODB_FILE_WRITER
 
class  ODB_TREE_WRITER
 
class  ODB_TEXT_WRITER
 
class  ODB_TEXT_WRITER::ARRAY_PROXY
 
class  ODB_DRILL_TOOLS
 
struct  ODB_DRILL_TOOLS::TOOLS
 

Namespaces

namespace  ODB
 

Enumerations

enum class  ODB_POLARITY { POSITIVE , NEGATIVE }
 
enum class  ODB_CONTEXT { BOARD , MISC }
 
enum class  ODB_DIELECTRIC_TYPE { NONE , PREPREG , CORE }
 
enum class  ODB_TYPE {
  UNDEFINED , SIGNAL , POWER_GROUND , DIELECTRIC ,
  MIXED , SOLDER_MASK , SOLDER_PASTE , SILK_SCREEN ,
  DRILL , ROUT , DOCUMENT , COMPONENT ,
  MASK , CONDUCTIVE_PASTE
}
 
enum class  ODB_SUBTYPE {
  COVERLAY , COVERCOAT , STIFFENER , BEND_AREA ,
  FLEX_AREA , RIGID_AREA , PSA , SILVER_MASK ,
  CARBON_MASK
}
 
enum class  ODB_FID_TYPE { COPPER , LAMINATE , HOLE }
 

Functions

wxString ODB::GenODBString (const wxString &aStr)
 
wxString ODB::GenLegalNetName (const wxString &aStr)
 
wxString ODB::GenLegalEntityName (const wxString &aStr)
 
void ODB::RemoveWhitespace (wxString &aStr)
 
wxString ODB::Double2String (double aVal)
 
std::string ODB::Double2String (double aVal, int32_t aDigits)
 
wxString ODB::Data2String (double aVal)
 
wxString ODB::SymDouble2String (double aVal)
 
std::pair< wxString, wxString > ODB::AddXY (const VECTOR2I &aVec)
 
VECTOR2I ODB::GetShapePosition (const PCB_SHAPE &aShape)
 
template<typename T >
std::string ODB::Enum2String (T value)
 

Enumeration Type Documentation

◆ ODB_CONTEXT

enum class ODB_CONTEXT
strong
Enumerator
BOARD 
MISC 

Definition at line 20 of file odb_util.h.

◆ ODB_DIELECTRIC_TYPE

enum class ODB_DIELECTRIC_TYPE
strong
Enumerator
NONE 
PREPREG 
CORE 

Definition at line 26 of file odb_util.h.

◆ ODB_FID_TYPE

enum class ODB_FID_TYPE
strong
Enumerator
COPPER 
LAMINATE 
HOLE 

Definition at line 65 of file odb_util.h.

◆ ODB_POLARITY

enum class ODB_POLARITY
strong
Enumerator
POSITIVE 
NEGATIVE 

Definition at line 14 of file odb_util.h.

◆ ODB_SUBTYPE

enum class ODB_SUBTYPE
strong
Enumerator
COVERLAY 
COVERCOAT 
STIFFENER 
BEND_AREA 
FLEX_AREA 
RIGID_AREA 
PSA 
SILVER_MASK 
CARBON_MASK 

Definition at line 52 of file odb_util.h.

◆ ODB_TYPE

enum class ODB_TYPE
strong
Enumerator
UNDEFINED 
SIGNAL 
POWER_GROUND 
DIELECTRIC 
MIXED 
SOLDER_MASK 
SOLDER_PASTE 
SILK_SCREEN 
DRILL 
ROUT 
DOCUMENT 
COMPONENT 
MASK 
CONDUCTIVE_PASTE 

Definition at line 33 of file odb_util.h.