pcb 4.1.1
An interactive printed circuit board layout editor.

rats.h File Reference

Prototypes for rats routines. More...

#include "global.h"
Include dependency graph for rats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

LibraryMenuTypenetnode_to_netname (char *nodename)
LibraryMenuTypenetname_to_netname (char *netname)
RatTypeAddNet (void)
 This function is moved from the original netlist.c as part of the gui code separation for the Gtk port.
char * ConnectionName (int, void *, void *)
 This function is moved from the original netlist.c as part of the gui code separation for the Gtk port.
bool AddAllRats (bool, void(*)(register ConnectionType *, register ConnectionType *, register RouteStyleType *))
 AddAllRats puts the rats nest into the layout from the loaded netlist.
bool SeekPad (LibraryEntryType *, ConnectionType *, bool)
 Parse a netlist menu entry and locate the corresponding pad.
NetListTypeProcNetlist (LibraryType *)
 Read the library-netlist build a true Netlist structure.
NetListListType CollectSubnets (bool)

Detailed Description

Prototypes for rats routines.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996 Thomas Nau

Copyright (C) 1997, harry eaton

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Contact addresses for paper mail and Email:

Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany

Thomas.Nau@rz.uni-ulm.de

Definition in file rats.h.


Function Documentation

bool AddAllRats ( bool  SelectedOnly,
void(*)(register ConnectionType *, register ConnectionType *, register RouteStyleType *)  funcp 
)

AddAllRats puts the rats nest into the layout from the loaded netlist.

If SelectedOnly is true, it will only draw rats to selected pins and pads.

Definition at line 741 of file rats.c.

References _, connection(), CONNECTION_LOOP, PCBType::Data, Draw(), DrawShortestRats(), END_LOOP, FreeConnectionLookupMemory(), FreeNetListMemory(), GatherSubnets(), GetConnectionMemory(), GetNetMemory(), IncrementUndoSerialNumber(), InitConnectionLookup(), Message(), NET_LOOP, PCBType::NetlistLib, NetListType::NetN, PCB, ProcNetlist(), DataType::RatN, SettingType::RatWarn, Settings, NetType::Style, and TEST_FLAG.

Referenced by ActionAddRats(), ActionImport(), AutoPlaceSelected(), AutoRoute(), and toporouter().

Here is the call graph for this function:

NetListListType CollectSubnets ( bool  SelectedOnly)
Todo:
This is copied in large part from AddAllRats above; for maintainability, AddAllRats probably wants to be tweaked to use this version of the code so that we don't have duplication.

Definition at line 835 of file rats.c.

References _, connection(), CONNECTION_LOOP, END_LOOP, FreeConnectionLookupMemory(), GatherSubnets(), GetConnectionMemory(), GetNetListMemory(), GetNetMemory(), InitConnectionLookup(), Message(), NET_LOOP, PCBType::NetlistLib, PCB, ProcNetlist(), NetType::Style, and TEST_FLAG.

Referenced by CreateRouteData(), and import_clusters().

Here is the call graph for this function:

char* ConnectionName ( int  ,
void *  ,
void *   
)

This function is moved from the original netlist.c as part of the gui code separation for the Gtk port.

Definition at line 1025 of file rats.c.

References NAMEONPCB_NAME, and UNKNOWN.

Referenced by AddNet(), describe_location(), and LookupConnection().

LibraryMenuType* netname_to_netname ( char *  netname)
bool SeekPad ( LibraryEntryType entry,
ConnectionType conn,
bool  Same 
)

Parse a netlist menu entry and locate the corresponding pad.

Returns:
true if found, and fills in Connection information.

Definition at line 189 of file rats.c.

References _, FindPad(), LibraryEntryType::ListEntry, Message(), and ParseConnection().

Referenced by gsvit_create_netlist(), nbcb_select_common(), netlist_select_cb(), node_selection_changed_cb(), pin_name_to_xy(), ProcNetlist(), ReportNetLengthByName(), and toggle_pin_selected().

Here is the call graph for this function: