KiCad PCB EDA Suite
DSN::PROPERTY Struct Reference

#include <specctra.h>

Public Member Functions

void Format (OUTPUTFORMATTER *out, int nestLevel) const throw ( IO_ERROR )
 Function Format writes this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format. More...
 

Public Attributes

std::string name
 
std::string value
 

Detailed Description

Definition at line 161 of file specctra.h.

Member Function Documentation

void DSN::PROPERTY::Format ( OUTPUTFORMATTER out,
int  nestLevel 
) const
throw (IO_ERROR
)
inline

Function Format writes this object as ASCII out to an OUTPUTFORMATTER according to the SPECCTRA DSN format.

Parameters
outThe formatter to write to.
nestLevelA multiple of the number of spaces to preceed the output with.
Exceptions
IO_ERRORif a system error writing the output, such as a full disk.

Definition at line 174 of file specctra.h.

175  {
176  const char* quoteName = out->GetQuoteChar( name.c_str() );
177  const char* quoteValue = out->GetQuoteChar( value.c_str() );
178 
179  out->Print( nestLevel, "(%s%s%s %s%s%s)\n",
180  quoteName, name.c_str(), quoteName,
181  quoteValue, value.c_str(), quoteValue );
182  }
std::string name
Definition: specctra.h:163
std::string value
Definition: specctra.h:164
static const char * GetQuoteChar(const char *wrapee, const char *quote_char)
Function GetQuoteChar performs quote character need determination according to the Specctra DSN speci...
Definition: richio.cpp:331
int PRINTF_FUNC Print(int nestLevel, const char *fmt,...)
Function Print formats and writes text to the output stream.
Definition: richio.cpp:408

Member Data Documentation

std::string DSN::PROPERTY::name

Definition at line 163 of file specctra.h.

std::string DSN::PROPERTY::value

Definition at line 164 of file specctra.h.


The documentation for this struct was generated from the following file: