Commit 3a618567 authored by dickelbeck's avatar dickelbeck

netless zone support fix to specctra export

parent d58296c8
...@@ -2465,10 +2465,6 @@ struct PIN_REF : public ELEM ...@@ -2465,10 +2465,6 @@ struct PIN_REF : public ELEM
// the quotes unconditional on this one. // the quotes unconditional on this one.
const char* newline = nestLevel ? "\n" : ""; const char* newline = nestLevel ? "\n" : "";
#if 0
return out->Print( nestLevel, "\"%s\"-\"%s\"%s",
component_id.c_str(), pin_id.c_str(), newline );
#else
const char* cquote = out->GetQuoteChar( component_id.c_str() ); const char* cquote = out->GetQuoteChar( component_id.c_str() );
const char* pquote = out->GetQuoteChar( pin_id.c_str() ); const char* pquote = out->GetQuoteChar( pin_id.c_str() );
...@@ -2476,7 +2472,6 @@ struct PIN_REF : public ELEM ...@@ -2476,7 +2472,6 @@ struct PIN_REF : public ELEM
cquote, component_id.c_str(), cquote, cquote, component_id.c_str(), cquote,
pquote, pin_id.c_str(), pquote, pquote, pin_id.c_str(), pquote,
newline ); newline );
#endif
} }
}; };
typedef std::vector<PIN_REF> PIN_REFS; typedef std::vector<PIN_REF> PIN_REFS;
...@@ -2583,7 +2578,11 @@ public: ...@@ -2583,7 +2578,11 @@ public:
}; };
typedef boost::ptr_vector<COMP_ORDER> COMP_ORDERS; typedef boost::ptr_vector<COMP_ORDER> COMP_ORDERS;
/**
* Class NET
* corresponds to a &lt;net_descriptor&gt;
* in the DSN spec.
*/
class NET : public ELEM class NET : public ELEM
{ {
friend class SPECCTRA_DB; friend class SPECCTRA_DB;
...@@ -2635,7 +2634,6 @@ public: ...@@ -2635,7 +2634,6 @@ public:
delete comp_order; delete comp_order;
} }
int FindPIN_REF( const std::string& aComponent ) int FindPIN_REF( const std::string& aComponent )
{ {
for( unsigned i=0; i<pins.size(); ++i ) for( unsigned i=0; i<pins.size(); ++i )
...@@ -2646,7 +2644,6 @@ public: ...@@ -2646,7 +2644,6 @@ public:
return -1; return -1;
} }
void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError ) void Format( OUTPUTFORMATTER* out, int nestLevel ) throw( IOError )
{ {
const char* quote = out->GetQuoteChar( net_id.c_str() ); const char* quote = out->GetQuoteChar( net_id.c_str() );
...@@ -2669,6 +2666,8 @@ public: ...@@ -2669,6 +2666,8 @@ public:
out->Print( 0, "\n" ); out->Print( 0, "\n" );
if( pins.size() )
{
const int RIGHTMARGIN = 80; const int RIGHTMARGIN = 80;
int perLine = out->Print( nestLevel+1, "(%s", LEXER::GetTokenText( pins_type ) ); int perLine = out->Print( nestLevel+1, "(%s", LEXER::GetTokenText( pins_type ) );
...@@ -2685,6 +2684,7 @@ public: ...@@ -2685,6 +2684,7 @@ public:
perLine += i->FormatIt( out, 0 ); perLine += i->FormatIt( out, 0 );
} }
out->Print( 0, ")\n" ); out->Print( 0, ")\n" );
}
if( comp_order ) if( comp_order )
comp_order->Format( out, nestLevel+1 ); comp_order->Format( out, nestLevel+1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment