KiCad PCB EDA Suite
Loading...
Searching...
No Matches
odb_util.cpp File Reference
#include <string>
#include <algorithm>
#include <filesystem>
#include <locale>
#include <map>
#include <set>
#include "odb_util.h"
#include <string_utils.h>
#include <wx/chartype.h>
#include <wx/dir.h>
#include <wx/regex.h>
#include <board.h>
#include <drill/drill_operation.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_track.h>
#include "odb_defines.h"
#include "pcb_io_odbpp.h"

Go to the source code of this file.

Namespaces

namespace  ODB
 

Functions

int ODB::IpcViaType (const DRILL_OPERATION &aOperation, bool aTop)
 
bool ODB::ViaInPad (const PCB_VIA &aVia)
 
std::vector< ODB_TYPE > ODB::OverridableLayerTypes (PCB_LAYER_ID aLayer)
 Matrix types a layer override may assign to aLayer.
 
wxString ODB::GenODBString (const wxString &aStr)
 
static wxUniChar ODB::NextCharacter (const wxString &aStr, size_t &aIndex)
 
wxString ODB::GenLegalNetName (const wxString &aStr)
 
wxString ODB::GenLegalComponentName (const wxString &aStr)
 
wxString ODB::GenLegalEntityName (const wxString &aStr)
 
std::vector< wxString > ODB::UniqueNames (const std::vector< wxString > &aBases, const std::set< wxString > &aReserved, size_t aMaxLength)
 
void ODB::RemoveWhitespace (wxString &aStr)
 
wxString ODB::Double2String (const ODB_FORMAT &aFormat, double aVal)
 
std::string ODB::Double2String (double aVal, int32_t aDigits)
 
wxString ODB::SymDouble2String (const ODB_FORMAT &aFormat, double aVal)
 
wxString ODB::Data2String (const ODB_FORMAT &aFormat, double aVal)
 
std::pair< wxString, wxString > ODB::AddXY (const ODB_FORMAT &aFormat, const VECTOR2I &aVec)
 
std::pair< wxString, wxString > ODB::AddRelativeXY (const ODB_FORMAT &aFormat, const VECTOR2I &aVec)
 
VECTOR2I ODB::GetShapePosition (const PCB_SHAPE &aShape)