KiCad PCB EDA Suite
|
Functions | |
void | FormatBool (OUTPUTFORMATTER *aOut, int aNestLevel, const wxString &aKey, bool aValue, char aSuffix='\n') |
Writes a boolean to the formatter, in the style (aKey [yes|no]) | |
void | FormatUuid (OUTPUTFORMATTER *aOut, const KIID &aUuid, char aSuffix) |
void | Prettify (std::string &aSource, char aQuoteChar) |
KICOMMON_API void KICAD_FORMAT::FormatBool | ( | OUTPUTFORMATTER * | aOut, |
int | aNestLevel, | ||
const wxString & | aKey, | ||
bool | aValue, | ||
char | aSuffix = '\n' |
||
) |
Writes a boolean to the formatter, in the style (aKey [yes|no])
aOut | is the output formatter to write to |
aNestLevel | is passed to the output formatter to control indentation |
aKey | is the name of the boolean flag |
aValue | is the value to write |
aSuffix | is the character to format after the end of the boolean (after the close paren) |
Definition at line 29 of file kicad_io_utils.cpp.
References OUTPUTFORMATTER::Print().
Referenced by PCB_IO_KICAD_SEXPR::format(), PCB_PLOT_PARAMS::Format(), PCB_IO_KICAD_SEXPR::formatGeneral(), PCB_IO_KICAD_SEXPR::formatSetup(), and PCB_IO_KICAD_SEXPR::formatTeardropParameters().
KICOMMON_API void KICAD_FORMAT::FormatUuid | ( | OUTPUTFORMATTER * | aOut, |
const KIID & | aUuid, | ||
char | aSuffix | ||
) |
Definition at line 36 of file kicad_io_utils.cpp.
References KIID::AsString(), OUTPUTFORMATTER::Print(), and TO_UTF8.
Referenced by PCB_IO_KICAD_SEXPR::format(), SCH_IO_KICAD_SEXPR::Format(), SCH_IO_KICAD_SEXPR::saveBitmap(), SCH_IO_KICAD_SEXPR::saveBusEntry(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveLine(), SCH_IO_KICAD_SEXPR::saveNoConnect(), SCH_IO_KICAD_SEXPR::saveSheet(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_IO_KICAD_SEXPR::saveText(), and SCH_IO_KICAD_SEXPR::saveTextBox().
KICOMMON_API void KICAD_FORMAT::Prettify | ( | std::string & | aSource, |
char | aQuoteChar | ||
) |
Definition at line 65 of file kicad_io_utils.cpp.
References cursor, and next().
Referenced by BOOST_FIXTURE_TEST_CASE(), and PRETTIFIED_FILE_OUTPUTFORMATTER::Finish().