KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_FORMAT Namespace Reference

Functions

void FormatBool (OUTPUTFORMATTER *aOut, const wxString &aKey, bool aValue)
 Writes a boolean to the formatter, in the style (aKey [yes|no])
 
void FormatUuid (OUTPUTFORMATTER *aOut, const KIID &aUuid)
 
void FormatStreamData (OUTPUTFORMATTER &aOut, const wxStreamBuffer &aStream)
 Write binary data to the formatter as base 64 encoded string.
 
void Prettify (std::string &aSource, bool aCompactSave)
 

Function Documentation

◆ FormatBool()

◆ FormatStreamData()

KICOMMON_API void KICAD_FORMAT::FormatStreamData ( OUTPUTFORMATTER aOut,
const wxStreamBuffer &  aStream 
)

Write binary data to the formatter as base 64 encoded string.

Definition at line 47 of file kicad_io_utils.cpp.

References MIME_BASE64_LENGTH, OUTPUTFORMATTER::Print(), and TO_UTF8.

Referenced by PCB_IO_KICAD_SEXPR::format(), DS_DATA_MODEL_IO::format(), and SCH_IO_KICAD_SEXPR::saveBitmap().

◆ FormatUuid()

◆ Prettify()