pcb 4.1.1
An interactive printed circuit board layout editor.

layerflags.h File Reference

Prototypes for changing layer flags. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned int string_to_layertype (const char *typestring, int(*error)(const char *msg))
const char * layertype_to_string (unsigned int type)
unsigned int guess_layertype (const char *name, int layer_number, DataType *data)
 Given a layer without type, try to guess its type, mostly from its name.

Detailed Description

Prototypes for changing layer flags.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 2007 DJ Delorie <dj@delorie.com>

Copyright (C) 2015 Markus "Traumflug" Hitter <mah@jump-ing.de>

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.

Definition in file layerflags.h.


Function Documentation

unsigned int guess_layertype ( const char *  name,
int  layer_number,
DataType data 
)

Given a layer without type, try to guess its type, mostly from its name.

This is used by parse_y.y for compatibility with old file formats and _not_ used when such flags are already present in the file.

Definition at line 120 of file layerflags.c.

References layertype_name, LT_COPPER, LT_NUM_LAYERTYPES, and strcasestr().

Here is the call graph for this function:

const char* layertype_to_string ( unsigned int  type)
unsigned int string_to_layertype ( const char *  typestring,
int(*)(const char *msg)  error 
)

Definition at line 76 of file layerflags.c.

References layertype_name, and LT_NUM_LAYERTYPES.

Referenced by ActionSetLayertype().