|
|
|
@ -149,7 +149,7 @@ struct POINT |
|
|
|
* @param nestLevel A multiple of the number of spaces to preceed the output with. |
|
|
|
* @throw IO_ERROR if a system error writing the output, such as a full disk. |
|
|
|
*/ |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) const throw( IO_ERROR ) |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) const |
|
|
|
{ |
|
|
|
out->Print( nestLevel, " %.6g %.6g", x, y ); |
|
|
|
} |
|
|
|
@ -171,7 +171,7 @@ struct PROPERTY |
|
|
|
* @param nestLevel A multiple of the number of spaces to preceed the output with. |
|
|
|
* @throw IO_ERROR if a system error writing the output, such as a full disk. |
|
|
|
*/ |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) const throw( IO_ERROR ) |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) const |
|
|
|
{ |
|
|
|
const char* quoteName = out->GetQuoteChar( name.c_str() ); |
|
|
|
const char* quoteValue = out->GetQuoteChar( value.c_str() ); |
|
|
|
@ -249,7 +249,7 @@ public: |
|
|
|
* @param nestLevel A multiple of the number of spaces to preceed the output with. |
|
|
|
* @throw IO_ERROR if a system error writing the output, such as a full disk. |
|
|
|
*/ |
|
|
|
virtual void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ); |
|
|
|
virtual void Format( OUTPUTFORMATTER* out, int nestLevel ); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -261,7 +261,7 @@ public: |
|
|
|
* @param nestLevel A multiple of the number of spaces to preceed the output with. |
|
|
|
* @throw IO_ERROR if a system error writing the output, such as a full disk. |
|
|
|
*/ |
|
|
|
virtual void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) |
|
|
|
virtual void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) |
|
|
|
{ |
|
|
|
// overridden in ELEM_HOLDER |
|
|
|
} |
|
|
|
@ -293,7 +293,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
virtual void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override; |
|
|
|
virtual void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override; |
|
|
|
|
|
|
|
|
|
|
|
//-----< list operations >-------------------------------------------- |
|
|
|
@ -389,7 +389,7 @@ public: |
|
|
|
|
|
|
|
PARSER( ELEM* aParent ); |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override; |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -423,7 +423,7 @@ public: |
|
|
|
DSN_T GetEngUnits() const { return units; } |
|
|
|
int GetValue() const { return value; } |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( type == T_unit ) |
|
|
|
out->Print( nestLevel, "(%s %s)\n", Name(), |
|
|
|
@ -469,7 +469,7 @@ public: |
|
|
|
POINT GetOrigin() { return point0; } |
|
|
|
POINT GetEnd() { return point1; } |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* newline = nestLevel ? "\n" : ""; |
|
|
|
|
|
|
|
@ -502,7 +502,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s", Name() ); |
|
|
|
|
|
|
|
@ -548,7 +548,7 @@ public: |
|
|
|
delete rule; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s", Name() ); |
|
|
|
|
|
|
|
@ -609,7 +609,7 @@ public: |
|
|
|
aperture_width = aWidth; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* newline = nestLevel ? "\n" : ""; |
|
|
|
|
|
|
|
@ -702,7 +702,7 @@ public: |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s\n", Name() ); |
|
|
|
|
|
|
|
@ -735,7 +735,7 @@ public: |
|
|
|
diameter = 0.0; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* newline = nestLevel ? "\n" : ""; |
|
|
|
|
|
|
|
@ -782,7 +782,7 @@ public: |
|
|
|
aperture_width = 0.0; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* newline = nestLevel ? "\n" : ""; |
|
|
|
|
|
|
|
@ -864,7 +864,7 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s ", Name() ); |
|
|
|
|
|
|
|
@ -947,7 +947,7 @@ public: |
|
|
|
windows.push_back( aWindow ); |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* newline = "\n"; |
|
|
|
|
|
|
|
@ -1024,7 +1024,7 @@ public: |
|
|
|
padstacks.push_back( aViaName ); |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const int RIGHTMARGIN = 80; |
|
|
|
int perLine = out->Print( nestLevel, "(%s", Name() ); |
|
|
|
@ -1078,7 +1078,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( STRINGS::iterator i=class_ids.begin(); i!=class_ids.end(); ++i ) |
|
|
|
{ |
|
|
|
@ -1117,7 +1117,7 @@ public: |
|
|
|
delete classes; |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( classes ) |
|
|
|
classes->Format( out, nestLevel ); |
|
|
|
@ -1147,7 +1147,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s\n", Name() ); |
|
|
|
|
|
|
|
@ -1202,7 +1202,7 @@ public: |
|
|
|
delete rules; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( name.c_str() ); |
|
|
|
|
|
|
|
@ -1276,7 +1276,7 @@ public: |
|
|
|
layer_weight = 0.0; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote0 = out->GetQuoteChar( layer_id0.c_str() ); |
|
|
|
const char* quote1 = out->GetQuoteChar( layer_id1.c_str() ); |
|
|
|
@ -1303,7 +1303,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s\n", Name() ); |
|
|
|
|
|
|
|
@ -1351,7 +1351,7 @@ public: |
|
|
|
value = T_NONE; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s %s)\n", Name(), |
|
|
|
GetTokenText( value ) ); |
|
|
|
@ -1377,7 +1377,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( value.c_str() ); |
|
|
|
|
|
|
|
@ -1420,7 +1420,7 @@ public: |
|
|
|
delete rules; |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( region_id.size() ) |
|
|
|
{ |
|
|
|
@ -1464,7 +1464,7 @@ public: |
|
|
|
image_type= T_NONE; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s %s %.6g", |
|
|
|
Name(), |
|
|
|
@ -1508,7 +1508,7 @@ public: |
|
|
|
delete rules; |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( LAYERS::iterator i=layers.begin(); i!=layers.end(); ++i ) |
|
|
|
i->Format( out, nestLevel ); |
|
|
|
@ -1592,7 +1592,7 @@ public: |
|
|
|
place_boundary->SetParent( this ); |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( unit ) |
|
|
|
unit->Format( out, nestLevel ); |
|
|
|
@ -1724,7 +1724,7 @@ public: |
|
|
|
rotation = aRotation; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override; |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override; |
|
|
|
}; |
|
|
|
typedef boost::ptr_vector<PLACE> PLACES; |
|
|
|
|
|
|
|
@ -1761,7 +1761,7 @@ public: |
|
|
|
*/ |
|
|
|
// static int Compare( IMAGE* lhs, IMAGE* rhs ); |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( image_id.c_str() ); |
|
|
|
out->Print( nestLevel, "(%s %s%s%s\n", Name(), |
|
|
|
@ -1772,7 +1772,7 @@ public: |
|
|
|
out->Print( nestLevel, ")\n" ); |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( PLACES::iterator i=places.begin(); i!=places.end(); ++i ) |
|
|
|
i->Format( out, nestLevel ); |
|
|
|
@ -1825,7 +1825,7 @@ public: |
|
|
|
return added; |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( unit ) |
|
|
|
unit->Format( out, nestLevel ); |
|
|
|
@ -1891,7 +1891,7 @@ public: |
|
|
|
connect = aConnect; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s ", Name() ); |
|
|
|
|
|
|
|
@ -1950,7 +1950,7 @@ public: |
|
|
|
vertex.FixNegativeZero(); |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( padstack_id.c_str() ); |
|
|
|
if( isRotated ) |
|
|
|
@ -2035,7 +2035,7 @@ public: |
|
|
|
return image_id; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
std::string imageId = GetImageId(); |
|
|
|
|
|
|
|
@ -2050,7 +2050,7 @@ public: |
|
|
|
} |
|
|
|
|
|
|
|
// this is here for makeHash() |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( side != T_both ) |
|
|
|
out->Print( 0, " (side %s)", GetTokenText( side ) ); |
|
|
|
@ -2150,7 +2150,7 @@ public: |
|
|
|
padstack_id = aPadstackId; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( padstack_id.c_str() ); |
|
|
|
|
|
|
|
@ -2164,7 +2164,7 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
// this factored out for use by Compare() |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( unit ) |
|
|
|
unit->Format( out, nestLevel ); |
|
|
|
@ -2393,7 +2393,7 @@ public: |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( unit ) |
|
|
|
unit->Format( out, nestLevel ); |
|
|
|
@ -2438,7 +2438,7 @@ struct PIN_REF : public ELEM |
|
|
|
* is like Format() but is not virual and returns the number of characters |
|
|
|
* that were output. |
|
|
|
*/ |
|
|
|
int FormatIt( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) |
|
|
|
int FormatIt( OUTPUTFORMATTER* out, int nestLevel ) |
|
|
|
{ |
|
|
|
// only print the newline if there is a nest level, and make |
|
|
|
// the quotes unconditional on this one. |
|
|
|
@ -2482,7 +2482,7 @@ public: |
|
|
|
delete rules; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
// no quoting on these two, the lexer preserved the quotes on input |
|
|
|
out->Print( nestLevel, "(%s %s %s ", |
|
|
|
@ -2540,7 +2540,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s", Name() ); |
|
|
|
|
|
|
|
@ -2623,7 +2623,7 @@ public: |
|
|
|
return -1; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( net_id.c_str() ); |
|
|
|
const char* space = " "; |
|
|
|
@ -2700,7 +2700,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( FROMTOS::iterator i=fromtos.begin(); i!=fromtos.end(); ++i ) |
|
|
|
i->Format( out, nestLevel ); |
|
|
|
@ -2747,7 +2747,7 @@ public: |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( class_id.c_str() ); |
|
|
|
|
|
|
|
@ -2816,7 +2816,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( NETS::iterator i=nets.begin(); i!=nets.end(); ++i ) |
|
|
|
i->Format( out, nestLevel ); |
|
|
|
@ -2897,7 +2897,7 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
out->Print( nestLevel, "(%s ", Name() ); |
|
|
|
|
|
|
|
@ -2981,7 +2981,7 @@ public: |
|
|
|
return padstack_id; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( padstack_id.c_str() ); |
|
|
|
|
|
|
|
@ -3107,7 +3107,7 @@ public: |
|
|
|
delete unit; |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( unit ) |
|
|
|
unit->Format( out, nestLevel ); |
|
|
|
@ -3170,7 +3170,7 @@ public: |
|
|
|
delete wiring; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( pcbname.c_str() ); |
|
|
|
|
|
|
|
@ -3233,7 +3233,7 @@ public: |
|
|
|
time_stamp = time(NULL); |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
char temp[80]; |
|
|
|
struct tm* tmp; |
|
|
|
@ -3277,7 +3277,7 @@ public: |
|
|
|
time_stamp = time(NULL); |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( ANCESTORS::iterator i=ancestors.begin(); i!=ancestors.end(); ++i ) |
|
|
|
i->Format( out, nestLevel ); |
|
|
|
@ -3320,7 +3320,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
bool singleLine = pin_refs.size() <= 1; |
|
|
|
out->Print( nestLevel, "(%s", Name() ); |
|
|
|
@ -3379,7 +3379,7 @@ public: |
|
|
|
delete rules; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( net_id.c_str() ); |
|
|
|
|
|
|
|
@ -3446,7 +3446,7 @@ public: |
|
|
|
return ELEM::GetUnits(); |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
if( resolution ) |
|
|
|
resolution->Format( out, nestLevel ); |
|
|
|
@ -3509,7 +3509,7 @@ public: |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void FormatContents( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
for( PIN_PAIRS::iterator i=pin_pairs.begin(); i!=pin_pairs.end(); ++i ) |
|
|
|
{ |
|
|
|
@ -3566,7 +3566,7 @@ public: |
|
|
|
delete route; |
|
|
|
} |
|
|
|
|
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IO_ERROR ) override |
|
|
|
void Format( OUTPUTFORMATTER* out, int nestLevel ) override |
|
|
|
{ |
|
|
|
const char* quote = out->GetQuoteChar( session_id.c_str() ); |
|
|
|
out->Print( nestLevel, "(%s %s%s%s\n", Name(), |
|
|
|
@ -3676,7 +3676,7 @@ class SPECCTRA_DB : public SPECCTRA_LEXER |
|
|
|
* @throw IO_ERROR, if the next token or two do no make up a pin_reference, |
|
|
|
* or there is an error reading from the input stream. |
|
|
|
*/ |
|
|
|
void readCOMPnPIN( std::string* component_id, std::string* pid_id ) throw( IO_ERROR ); |
|
|
|
void readCOMPnPIN( std::string* component_id, std::string* pid_id ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function readTIME |
|
|
|
@ -3692,60 +3692,60 @@ class SPECCTRA_DB : public SPECCTRA_LEXER |
|
|
|
* @throw IO_ERROR, if the next token or 8 do no make up a time stamp, |
|
|
|
* or there is an error reading from the input stream. |
|
|
|
*/ |
|
|
|
void readTIME( time_t* time_stamp ) throw( IO_ERROR ); |
|
|
|
|
|
|
|
void doPCB( PCB* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doPARSER( PARSER* growth ) throw( IO_ERROR ); |
|
|
|
void doRESOLUTION( UNIT_RES* growth ) throw( IO_ERROR ); |
|
|
|
void doUNIT( UNIT_RES* growth ) throw( IO_ERROR ); |
|
|
|
void doSTRUCTURE( STRUCTURE* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doSTRUCTURE_OUT( STRUCTURE_OUT* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doLAYER_NOISE_WEIGHT( LAYER_NOISE_WEIGHT* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doSPECCTRA_LAYER_PAIR( SPECCTRA_LAYER_PAIR* growth ) throw( IO_ERROR ); |
|
|
|
void doBOUNDARY( BOUNDARY* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doRECTANGLE( RECTANGLE* growth ) throw( IO_ERROR ); |
|
|
|
void doPATH( PATH* growth ) throw( IO_ERROR ); |
|
|
|
void doSTRINGPROP( STRINGPROP* growth ) throw( IO_ERROR ); |
|
|
|
void doTOKPROP( TOKPROP* growth ) throw( IO_ERROR ); |
|
|
|
void doVIA( VIA* growth ) throw( IO_ERROR ); |
|
|
|
void doCONTROL( CONTROL* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doLAYER( LAYER* growth ) throw( IO_ERROR ); |
|
|
|
void doRULE( RULE* growth ) throw( IO_ERROR ); |
|
|
|
void doKEEPOUT( KEEPOUT* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doCIRCLE( CIRCLE* growth ) throw( IO_ERROR ); |
|
|
|
void doQARC( QARC* growth ) throw( IO_ERROR ); |
|
|
|
void doWINDOW( WINDOW* growth ) throw( IO_ERROR ); |
|
|
|
void doCONNECT( CONNECT* growth ) throw( IO_ERROR ); |
|
|
|
void doREGION( REGION* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doCLASS_CLASS( CLASS_CLASS* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doLAYER_RULE( LAYER_RULE* growth ) throw( IO_ERROR ); |
|
|
|
void doCLASSES( CLASSES* growth ) throw( IO_ERROR ); |
|
|
|
void doGRID( GRID* growth ) throw( IO_ERROR ); |
|
|
|
void doPLACE( PLACE* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doCOMPONENT( COMPONENT* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doPLACEMENT( PLACEMENT* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doPROPERTIES( PROPERTIES* growth ) throw( IO_ERROR ); |
|
|
|
void doPADSTACK( PADSTACK* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doSHAPE( SHAPE* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doIMAGE( IMAGE* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doLIBRARY( LIBRARY* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doPIN( PIN* growth ) throw( IO_ERROR ); |
|
|
|
void doNET( NET* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doNETWORK( NETWORK* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doCLASS( CLASS* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doTOPOLOGY( TOPOLOGY* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doFROMTO( FROMTO* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doCOMP_ORDER( COMP_ORDER* growth ) throw( IO_ERROR ); |
|
|
|
void doWIRE( WIRE* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doWIRE_VIA( WIRE_VIA* growth ) throw( IO_ERROR ); |
|
|
|
void doWIRING( WIRING* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doSESSION( SESSION* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doANCESTOR( ANCESTOR* growth ) throw( IO_ERROR ); |
|
|
|
void doHISTORY( HISTORY* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doROUTE( ROUTE* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doWAS_IS( WAS_IS* growth ) throw( IO_ERROR ); |
|
|
|
void doNET_OUT( NET_OUT* growth ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void doSUPPLY_PIN( SUPPLY_PIN* growth ) throw( IO_ERROR ); |
|
|
|
void readTIME( time_t* time_stamp ); |
|
|
|
|
|
|
|
void doPCB( PCB* growth ); |
|
|
|
void doPARSER( PARSER* growth ); |
|
|
|
void doRESOLUTION( UNIT_RES* growth ); |
|
|
|
void doUNIT( UNIT_RES* growth ); |
|
|
|
void doSTRUCTURE( STRUCTURE* growth ); |
|
|
|
void doSTRUCTURE_OUT( STRUCTURE_OUT* growth ); |
|
|
|
void doLAYER_NOISE_WEIGHT( LAYER_NOISE_WEIGHT* growth ); |
|
|
|
void doSPECCTRA_LAYER_PAIR( SPECCTRA_LAYER_PAIR* growth ); |
|
|
|
void doBOUNDARY( BOUNDARY* growth ); |
|
|
|
void doRECTANGLE( RECTANGLE* growth ); |
|
|
|
void doPATH( PATH* growth ); |
|
|
|
void doSTRINGPROP( STRINGPROP* growth ); |
|
|
|
void doTOKPROP( TOKPROP* growth ); |
|
|
|
void doVIA( VIA* growth ); |
|
|
|
void doCONTROL( CONTROL* growth ); |
|
|
|
void doLAYER( LAYER* growth ); |
|
|
|
void doRULE( RULE* growth ); |
|
|
|
void doKEEPOUT( KEEPOUT* growth ); |
|
|
|
void doCIRCLE( CIRCLE* growth ); |
|
|
|
void doQARC( QARC* growth ); |
|
|
|
void doWINDOW( WINDOW* growth ); |
|
|
|
void doCONNECT( CONNECT* growth ); |
|
|
|
void doREGION( REGION* growth ); |
|
|
|
void doCLASS_CLASS( CLASS_CLASS* growth ); |
|
|
|
void doLAYER_RULE( LAYER_RULE* growth ); |
|
|
|
void doCLASSES( CLASSES* growth ); |
|
|
|
void doGRID( GRID* growth ); |
|
|
|
void doPLACE( PLACE* growth ); |
|
|
|
void doCOMPONENT( COMPONENT* growth ); |
|
|
|
void doPLACEMENT( PLACEMENT* growth ); |
|
|
|
void doPROPERTIES( PROPERTIES* growth ); |
|
|
|
void doPADSTACK( PADSTACK* growth ); |
|
|
|
void doSHAPE( SHAPE* growth ); |
|
|
|
void doIMAGE( IMAGE* growth ); |
|
|
|
void doLIBRARY( LIBRARY* growth ); |
|
|
|
void doPIN( PIN* growth ); |
|
|
|
void doNET( NET* growth ); |
|
|
|
void doNETWORK( NETWORK* growth ); |
|
|
|
void doCLASS( CLASS* growth ); |
|
|
|
void doTOPOLOGY( TOPOLOGY* growth ); |
|
|
|
void doFROMTO( FROMTO* growth ); |
|
|
|
void doCOMP_ORDER( COMP_ORDER* growth ); |
|
|
|
void doWIRE( WIRE* growth ); |
|
|
|
void doWIRE_VIA( WIRE_VIA* growth ); |
|
|
|
void doWIRING( WIRING* growth ); |
|
|
|
void doSESSION( SESSION* growth ); |
|
|
|
void doANCESTOR( ANCESTOR* growth ); |
|
|
|
void doHISTORY( HISTORY* growth ); |
|
|
|
void doROUTE( ROUTE* growth ); |
|
|
|
void doWAS_IS( WAS_IS* growth ); |
|
|
|
void doNET_OUT( NET_OUT* growth ); |
|
|
|
void doSUPPLY_PIN( SUPPLY_PIN* growth ); |
|
|
|
|
|
|
|
//-----<FromBOARD>------------------------------------------------------- |
|
|
|
|
|
|
|
@ -3756,7 +3756,7 @@ class SPECCTRA_DB : public SPECCTRA_LEXER |
|
|
|
* @param aBoard The BOARD to get information from in order to make the BOUNDARY. |
|
|
|
* @param aBoundary The empty BOUNDARY to fill in. |
|
|
|
*/ |
|
|
|
void fillBOUNDARY( BOARD* aBoard, BOUNDARY* aBoundary ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void fillBOUNDARY( BOARD* aBoard, BOUNDARY* aBoundary ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function makeIMAGE |
|
|
|
@ -3826,15 +3826,14 @@ class SPECCTRA_DB : public SPECCTRA_LEXER |
|
|
|
* Function makeTRACK |
|
|
|
* creates a TRACK form the PATH and BOARD info. |
|
|
|
*/ |
|
|
|
TRACK* makeTRACK( PATH* aPath, int aPointIndex, int aNetcode ) throw( IO_ERROR ); |
|
|
|
TRACK* makeTRACK( PATH* aPath, int aPointIndex, int aNetcode ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function makeVIA |
|
|
|
* instantiates a KiCad VIA on the heap and initializes it with internal |
|
|
|
* values consistent with the given PADSTACK, POINT, and netcode. |
|
|
|
*/ |
|
|
|
::VIA* makeVIA( PADSTACK* aPadstack, const POINT& aPoint, int aNetCode, int aViaDrillDefault ) |
|
|
|
throw( IO_ERROR ); |
|
|
|
::VIA* makeVIA( PADSTACK* aPadstack, const POINT& aPoint, int aNetCode, int aViaDrillDefault ); |
|
|
|
|
|
|
|
//-----</FromSESSION>---------------------------------------------------- |
|
|
|
|
|
|
|
@ -3906,7 +3905,7 @@ public: |
|
|
|
* @param aFilename The name of the dsn file to load. |
|
|
|
* @throw IO_ERROR if there is a lexer or parser error. |
|
|
|
*/ |
|
|
|
void LoadPCB( const wxString& aFilename ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void LoadPCB( const wxString& aFilename ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function LoadSESSION |
|
|
|
@ -3918,7 +3917,7 @@ public: |
|
|
|
* @param aFilename The name of the dsn file to load. |
|
|
|
* @throw IO_ERROR if there is a lexer or parser error. |
|
|
|
*/ |
|
|
|
void LoadSESSION( const wxString& aFilename ) throw( IO_ERROR, boost::bad_pointer ); |
|
|
|
void LoadSESSION( const wxString& aFilename ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function ExportPCB |
|
|
|
@ -3929,7 +3928,7 @@ public: |
|
|
|
* and also to to be changed in the output file. |
|
|
|
* @throw IO_ERROR, if an i/o error occurs saving the file. |
|
|
|
*/ |
|
|
|
void ExportPCB( wxString aFilename, bool aNameChange=false ) throw( IO_ERROR ); |
|
|
|
void ExportPCB( wxString aFilename, bool aNameChange=false ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function FromBOARD |
|
|
|
@ -3942,7 +3941,7 @@ public: |
|
|
|
* |
|
|
|
* @param aBoard The BOARD to convert to a PCB. |
|
|
|
*/ |
|
|
|
void FromBOARD( BOARD* aBoard ) throw( IO_ERROR, boost::bad_ptr_container_operation ); |
|
|
|
void FromBOARD( BOARD* aBoard ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function FromSESSION |
|
|
|
@ -3952,7 +3951,7 @@ public: |
|
|
|
* |
|
|
|
* @param aBoard The BOARD to merge the SESSION information into. |
|
|
|
*/ |
|
|
|
void FromSESSION( BOARD* aBoard ) throw( IO_ERROR ); |
|
|
|
void FromSESSION( BOARD* aBoard ); |
|
|
|
|
|
|
|
/** |
|
|
|
* Function ExportSESSION |
|
|
|
|