KiCad PCB EDA Suite
Loading...
Searching...
No Matches
idf_helpers.h File Reference
#include <wx/string.h>
#include <iostream>
#include <string>
#include <io/idf/idf_common.h>

Go to the source code of this file.

Namespaces

namespace  IDF3
 

Macros

#define ERROR_IDF   std::cerr << "* " << __FILE__ << ":" << __LINE__ << ":" << __FUNCTION__ << "(): "
 
#define IDF_MIN_DIA_MM   ( 0.001 )
 
#define IDF_MIN_DIA_THOU   ( 0.00039 )
 
#define IDF_MIN_DIA_TNM   ( 100 )
 
#define IDF_THOU_TO_MM   0.0254
 
#define IDF_TNM_TO_MM   0.00001
 

Functions

bool IDF3::FetchIDFLine (std::istream &aModel, std::string &aLine, bool &isComment, std::streampos &aFilePos)
 Retrieve a single line from an IDF file and performs minimal processing.
 
bool IDF3::GetIDFString (const std::string &aLine, std::string &aIDFString, bool &hasQuotes, int &aIndex)
 Parse a line retrieved via FetchIDFLine() and returns the first IDF string found from the starting point aIndex.
 
bool IDF3::CompareToken (const char *aTokenString, const std::string &aInputString)
 Perform a case-insensitive comparison of a token string and an input string.
 
bool IDF3::ParseOwner (const std::string &aToken, IDF3::KEY_OWNER &aOwner)
 Parse the input string for a valid IDF Owner type.
 
bool IDF3::ParseIDFLayer (const std::string &aToken, IDF3::IDF_LAYER &aLayer)
 Parse an input string for a valid IDF layer specification.
 
bool IDF3::WriteLayersText (std::ostream &aBoardFile, IDF3::IDF_LAYER aLayer)
 Write out text corresponding to the given IDF Layer type.
 
std::string IDF3::GetPlacementString (IDF3::IDF_PLACEMENT aPlacement)
 Return a string representing the given IDF Placement type.
 
std::string IDF3::GetLayerString (IDF3::IDF_LAYER aLayer)
 Return a string representing the given IDF Layer type.
 
std::string IDF3::GetOwnerString (IDF3::KEY_OWNER aOwner)
 

Macro Definition Documentation

◆ ERROR_IDF

◆ IDF_MIN_DIA_MM

#define IDF_MIN_DIA_MM   ( 0.001 )

Definition at line 32 of file idf_helpers.h.

Referenced by IDF3_BOARD::AddSlot(), and IDF_DRILL_DATA::read().

◆ IDF_MIN_DIA_THOU

#define IDF_MIN_DIA_THOU   ( 0.00039 )

Definition at line 33 of file idf_helpers.h.

Referenced by IDF_DRILL_DATA::read().

◆ IDF_MIN_DIA_TNM

#define IDF_MIN_DIA_TNM   ( 100 )

Definition at line 34 of file idf_helpers.h.

Referenced by IDF_DRILL_DATA::read().

◆ IDF_THOU_TO_MM

◆ IDF_TNM_TO_MM