Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
df9dae6d
Commit
df9dae6d
authored
Aug 03, 2010
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename NETLIST_HELP to EXPORT_HELP to generalize it a bit
parent
2213a347
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
netform.cpp
eeschema/netform.cpp
+16
-16
No files found.
eeschema/netform.cpp
View file @
df9dae6d
...
...
@@ -92,12 +92,12 @@ bool UNIQUE_STRINGS::Lookup( const wxString& aString )
/**
* Class
NETLIS
T_HELP
* Class
EXPOR
T_HELP
* is a private implementation class used in this source file to keep track
* of and recycle datastructures used in the generation of various exported netlist
* files. Since it is private it is not in a header file.
*/
class
NETLIS
T_HELP
class
EXPOR
T_HELP
{
NETLIST_OBJECT_LIST
m_SortedComponentPinList
;
...
...
@@ -178,7 +178,7 @@ bool WinEDA_SchematicFrame::WriteNetListFile( int aFormat, const wxString& aFull
{
bool
ret
=
true
;
FILE
*
f
=
NULL
;
NETLIS
T_HELP
helper
;
EXPOR
T_HELP
helper
;
if
(
aFormat
<
NET_TYPE_CUSTOM1
)
{
...
...
@@ -261,7 +261,7 @@ static bool sortPinsByNum( NETLIST_OBJECT* Pin1, NETLIST_OBJECT* Pin2 )
}
void
NETLIS
T_HELP
::
sprintPinNetName
(
wxString
*
aResult
,
void
EXPOR
T_HELP
::
sprintPinNetName
(
wxString
*
aResult
,
const
wxString
&
aNetNameFormat
,
NETLIST_OBJECT
*
aPin
)
{
int
netcode
=
aPin
->
GetNet
();
...
...
@@ -301,7 +301,7 @@ void NETLIST_HELP::sprintPinNetName( wxString* aResult,
}
SCH_COMPONENT
*
NETLIS
T_HELP
::
findNextComponentAndCreatPinList
(
EDA_BaseStruct
*
aItem
,
SCH_COMPONENT
*
EXPOR
T_HELP
::
findNextComponentAndCreatPinList
(
EDA_BaseStruct
*
aItem
,
SCH_SHEET_PATH
*
aSheetPath
)
{
wxString
ref
;
...
...
@@ -398,7 +398,7 @@ static wxXmlNode* Node( const wxString& aName, const wxString& aTextualContent =
* creates a generic netlist, now in XML.
* @return bool - true if there were no errors, else false.
*/
bool
NETLIS
T_HELP
::
Write_GENERIC_NetList
(
WinEDA_SchematicFrame
*
frame
,
const
wxString
&
aOutFileName
)
bool
EXPOR
T_HELP
::
Write_GENERIC_NetList
(
WinEDA_SchematicFrame
*
frame
,
const
wxString
&
aOutFileName
)
{
#if 1
// output the XML format netlist.
...
...
@@ -631,7 +631,7 @@ bool NETLIST_HELP::Write_GENERIC_NetList( WinEDA_SchematicFrame* frame, const wx
* [.-] Or PSpice gnucap are beginning
* + + Gnucap and PSpice are ultimately NetList
*/
void
NETLIS
T_HELP
::
WriteNetListPspice
(
WinEDA_SchematicFrame
*
frame
,
FILE
*
f
,
bool
use_netnames
)
void
EXPOR
T_HELP
::
WriteNetListPspice
(
WinEDA_SchematicFrame
*
frame
,
FILE
*
f
,
bool
use_netnames
)
{
char
Line
[
1024
];
SCH_SHEET_PATH
*
sheet
;
...
...
@@ -785,7 +785,7 @@ void NETLIST_HELP::WriteNetListPspice( WinEDA_SchematicFrame* frame, FILE* f, bo
}
bool
NETLIS
T_HELP
::
WriteNetListPCBNEW
(
WinEDA_SchematicFrame
*
frame
,
FILE
*
f
,
bool
with_pcbnew
)
bool
EXPOR
T_HELP
::
WriteNetListPCBNEW
(
WinEDA_SchematicFrame
*
frame
,
FILE
*
f
,
bool
with_pcbnew
)
{
wxString
field
;
wxString
footprint
;
...
...
@@ -938,7 +938,7 @@ bool NETLIST_HELP::WriteNetListPCBNEW( WinEDA_SchematicFrame* frame, FILE* f, bo
* a pin description is a pointer to the corresponding structure
* created by BuildNetList() in the table g_NetObjectslist
*/
bool
NETLIS
T_HELP
::
AddPinToComponentPinList
(
SCH_COMPONENT
*
aComponent
,
bool
EXPOR
T_HELP
::
AddPinToComponentPinList
(
SCH_COMPONENT
*
aComponent
,
SCH_SHEET_PATH
*
aSheetPath
,
LIB_PIN
*
aPin
)
{
// Search the PIN description for Pin in g_NetObjectslist
...
...
@@ -988,7 +988,7 @@ bool NETLIST_HELP::AddPinToComponentPinList( SCH_COMPONENT* aComponent,
* given component.
* Note: this list *MUST* be sorted by pin number (.m_PinNum member value)
*/
void
NETLIS
T_HELP
::
EraseDuplicatePins
(
NETLIST_OBJECT_LIST
&
aPinList
)
void
EXPOR
T_HELP
::
EraseDuplicatePins
(
NETLIST_OBJECT_LIST
&
aPinList
)
{
if
(
aPinList
.
size
()
==
0
)
// Trivial case: component with no pin
return
;
...
...
@@ -1043,7 +1043,7 @@ void NETLIST_HELP::EraseDuplicatePins( NETLIST_OBJECT_LIST& aPinList )
* Calls AddPinToComponentPinList() to and pins founds to the current
* component pin list
*/
void
NETLIS
T_HELP
::
FindAllInstancesOfComponent
(
SCH_COMPONENT
*
aComponent
,
void
EXPOR
T_HELP
::
FindAllInstancesOfComponent
(
SCH_COMPONENT
*
aComponent
,
LIB_COMPONENT
*
aEntry
,
SCH_SHEET_PATH
*
aSheetPath
)
{
...
...
@@ -1089,7 +1089,7 @@ void NETLIST_HELP::FindAllInstancesOfComponent( SCH_COMPONENT* aComponent,
/* Written in the file / net list (ranked by Netcode), and elements that are
* connected
*/
bool
NETLIS
T_HELP
::
WriteGENERICListOfNetsTxt
(
FILE
*
f
,
NETLIST_OBJECT_LIST
&
aObjectsList
)
bool
EXPOR
T_HELP
::
WriteGENERICListOfNetsTxt
(
FILE
*
f
,
NETLIST_OBJECT_LIST
&
aObjectsList
)
{
int
ret
=
0
;
int
netCode
;
...
...
@@ -1179,7 +1179,7 @@ bool NETLIST_HELP::WriteGENERICListOfNetsTxt( FILE* f, NETLIST_OBJECT_LIST& aObj
* Function WriteGENERICListOfNets
* saves a netlist in xml format.
*/
bool
NETLIS
T_HELP
::
WriteGENERICListOfNets
(
wxXmlNode
*
aNode
,
NETLIST_OBJECT_LIST
&
aObjectsList
)
bool
EXPOR
T_HELP
::
WriteGENERICListOfNets
(
wxXmlNode
*
aNode
,
NETLIST_OBJECT_LIST
&
aObjectsList
)
{
wxString
netCodeTxt
;
wxString
netName
;
...
...
@@ -1193,7 +1193,7 @@ bool NETLIST_HELP::WriteGENERICListOfNets( wxXmlNode* aNode, NETLIST_OBJECT_LIST
wxString
sNode
=
wxT
(
"node"
);
wxString
sFmtd
=
wxT
(
"%d"
);
wxXmlNode
*
xnet
;
wxXmlNode
*
xnet
=
0
;
int
netCode
;
int
lastNetCode
=
-
1
;
int
sameNetcodeCount
=
0
;
...
...
@@ -1290,7 +1290,7 @@ wxString StartLine( wxT( "." ) );
* .. B * T3 1
*U1 * 14
*/
void
NETLIS
T_HELP
::
WriteNetListCADSTAR
(
WinEDA_SchematicFrame
*
frame
,
FILE
*
f
)
void
EXPOR
T_HELP
::
WriteNetListCADSTAR
(
WinEDA_SchematicFrame
*
frame
,
FILE
*
f
)
{
wxString
StartCmpDesc
=
StartLine
+
wxT
(
"ADD_COM"
);
wxString
msg
;
...
...
@@ -1361,7 +1361,7 @@ void NETLIST_HELP::WriteNetListCADSTAR( WinEDA_SchematicFrame* frame, FILE* f )
*. B U1 100
* 6 CA
*/
void
NETLIS
T_HELP
::
WriteListOfNetsCADSTAR
(
FILE
*
f
,
NETLIST_OBJECT_LIST
&
aObjectsList
)
void
EXPOR
T_HELP
::
WriteListOfNetsCADSTAR
(
FILE
*
f
,
NETLIST_OBJECT_LIST
&
aObjectsList
)
{
wxString
InitNetDesc
=
StartLine
+
wxT
(
"ADD_TER"
);
wxString
StartNetDesc
=
StartLine
+
wxT
(
"TER"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment