KiCad PCB EDA Suite
Loading...
Searching...
No Matches
altium_parser_sch.h File Reference
#include <cstdint>
#include <cstring>
#include <map>
#include <vector>
#include <math/vector2d.h>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  ASCH_STORAGE_FILE
 
struct  ASCH_ADDITIONAL_FILE
 
struct  ASCH_OWNER_INTERFACE
 
struct  ASCH_FILL_INTERFACE
 
struct  ASCH_BORDER_INTERFACE
 
struct  ASCH_SYMBOL
 
struct  ASCH_TEMPLATE
 
class  ASCH_PIN_SYMBOL
 
struct  ASCH_PIN
 
struct  ASCH_LABEL
 
struct  ASCH_HYPERLINK
 
struct  ASCH_TEXT_FRAME
 
struct  ASCH_NOTE
 
struct  ASCH_BEZIER
 
struct  ASCH_POLYLINE
 
struct  ASCH_POLYGON
 
struct  ASCH_ROUND_RECTANGLE
 
struct  ASCH_ARC
 
struct  ASCH_ELLIPSE
 
struct  ASCH_LINE
 
struct  ASCH_SIGNAL_HARNESS
 
struct  ASCH_HARNESS_CONNECTOR
 
struct  ASCH_HARNESS_ENTRY
 
struct  ASCH_HARNESS_TYPE
 
struct  ASCH_RECTANGLE
 
struct  ASCH_SHEET_SYMBOL
 
struct  ASCH_SHEET_ENTRY
 
struct  ASCH_POWER_PORT
 
struct  ASCH_PORT
 
struct  ASCH_NO_ERC
 
struct  ASCH_NET_LABEL
 
struct  ASCH_BUS
 
struct  ASCH_WIRE
 
struct  ASCH_JUNCTION
 
struct  ASCH_IMAGE
 
struct  ASCH_SHEET_FONT
 
struct  ASCH_SHEET
 
struct  ASCH_SHEET_NAME
 
struct  ASCH_FILE_NAME
 
struct  ASCH_DESIGNATOR
 
struct  ASCH_IMPLEMENTATION
 
struct  ASCH_IMPLEMENTATION_LIST
 
struct  ASCH_BUS_ENTRY
 
struct  ASCH_PARAMETER
 

Enumerations

enum class  ALTIUM_SCH_RECORD {
  UNKNOWN = -1 , HEADER = 0 , COMPONENT = 1 , PIN = 2 ,
  IEEE_SYMBOL = 3 , LABEL = 4 , BEZIER = 5 , POLYLINE = 6 ,
  POLYGON = 7 , ELLIPSE = 8 , PIECHART = 9 , ROUND_RECTANGLE = 10 ,
  ELLIPTICAL_ARC = 11 , ARC = 12 , LINE = 13 , RECTANGLE = 14 ,
  SHEET_SYMBOL = 15 , SHEET_ENTRY = 16 , POWER_PORT = 17 , PORT = 18 ,
  NO_ERC = 22 , NET_LABEL = 25 , BUS = 26 , WIRE = 27 ,
  TEXT_FRAME = 28 , JUNCTION = 29 , IMAGE = 30 , SHEET = 31 ,
  SHEET_NAME = 32 , FILE_NAME = 33 , DESIGNATOR = 34 , BUS_ENTRY = 37 ,
  TEMPLATE = 39 , PARAMETER = 41 , PARAMETER_SET = 43 , IMPLEMENTATION_LIST = 44 ,
  IMPLEMENTATION = 45 , MAP_DEFINER_LIST = 46 , MAP_DEFINER = 47 , IMPL_PARAMS = 48 ,
  NOTE = 209 , COMPILE_MASK = 211 , HARNESS_CONNECTOR = 215 , HARNESS_ENTRY = 216 ,
  HARNESS_TYPE = 217 , SIGNAL_HARNESS = 218 , BLANKET = 225 , HYPERLINK = 226
}
 
enum class  ASCH_RECORD_ORIENTATION { RIGHTWARDS = 0 , UPWARDS = 1 , LEFTWARDS = 2 , DOWNWARDS = 3 }
 
enum class  ASCH_PIN_SYMBOL_EDGE {
  UNKNOWN = -1 , NO_SYMBOL = 0 , NEGATED = 1 , RIGHTLEFT = 2 ,
  CLOCK = 3 , LOW_INPUT = 4 , ANALOG_IN = 5 , NOLOGICCONNECT = 6 ,
  POSTPONE_OUTPUT = 8 , OPEN_COLLECTOR = 9 , HIZ = 10 , HIGH_CURRENT = 11 ,
  PULSE = 12 , SCHMITT = 13 , LOW_OUTPUT = 17 , OPEN_COLLECTOR_PULL_UP = 22 ,
  OPEN_EMITTER = 23 , OPEN_EMITTER_PULL_UP = 24 , DIGITAL_IN = 25 , SHIFT_LEFT = 30 ,
  OPEN_OUTPUT = 32 , LEFTRIGHT = 33 , BIDI = 34
}
 
enum class  ASCH_PIN_ELECTRICAL {
  UNKNOWN = -1 , INPUT = 0 , BIDI = 1 , OUTPUT = 2 ,
  OPEN_COLLECTOR = 3 , PASSIVE = 4 , TRISTATE = 5 , OPEN_EMITTER = 6 ,
  POWER = 7
}
 
enum class  ASCH_LABEL_JUSTIFICATION {
  UNKNOWN = -1 , BOTTOM_LEFT = 0 , BOTTOM_CENTER = 1 , BOTTOM_RIGHT = 2 ,
  CENTER_LEFT = 3 , CENTER_CENTER = 4 , CENTER_RIGHT = 5 , TOP_LEFT = 6 ,
  TOP_CENTER = 7 , TOP_RIGHT = 8
}
 
enum class  ASCH_TEXT_FRAME_ALIGNMENT { LEFT = 1 , CENTER = 2 , RIGHT = 3 }
 
enum class  ASCH_POLYLINE_LINESTYLE { SOLID = 0 , DASHED = 1 , DOTTED = 2 , DASH_DOTTED = 3 }
 
enum class  ASCH_SHEET_ENTRY_SIDE { LEFT = 0 , RIGHT = 1 , TOP = 2 , BOTTOM = 3 }
 
enum class  ASCH_PORT_IOTYPE { UNSPECIFIED = 0 , OUTPUT = 1 , INPUT = 2 , BIDI = 3 }
 
enum class  ASCH_PORT_STYLE {
  NONE_HORIZONTAL = 0 , LEFT = 1 , RIGHT = 2 , LEFT_RIGHT = 3 ,
  NONE_VERTICAL = 4 , TOP = 5 , BOTTOM = 6 , TOP_BOTTOM = 7
}
 
enum class  ASCH_POWER_PORT_STYLE {
  UNKNOWN = -1 , CIRCLE = 0 , ARROW = 1 , BAR = 2 ,
  WAVE = 3 , POWER_GROUND = 4 , SIGNAL_GROUND = 5 , EARTH = 6 ,
  GOST_ARROW = 7 , GOST_POWER_GROUND = 8 , GOST_EARTH = 9 , GOST_BAR = 10
}
 
enum class  ASCH_SHEET_SIZE {
  UNKNOWN = -1 , A4 = 0 , A3 = 1 , A2 = 2 ,
  A1 = 3 , A0 = 4 , A = 5 , B = 6 ,
  C = 7 , D = 8 , E = 9 , LETTER = 10 ,
  LEGAL = 11 , TABLOID = 12 , ORCAD_A = 13 , ORCAD_B = 14 ,
  ORCAD_C = 15 , ORCAD_D = 16 , ORCAD_E = 17
}
 
enum class  ASCH_SHEET_WORKSPACEORIENTATION { LANDSCAPE = 0 , PORTRAIT = 1 }
 

Functions

VECTOR2I ASchSheetGetSize (ASCH_SHEET_SIZE aSheetSize)
 

Variables

const int ALTIUM_COMPONENT_NONE = -1
 

Enumeration Type Documentation

◆ ALTIUM_SCH_RECORD

enum class ALTIUM_SCH_RECORD
strong
Enumerator
UNKNOWN 
HEADER 
COMPONENT 
PIN 
IEEE_SYMBOL 
LABEL 
BEZIER 
POLYLINE 
POLYGON 
ELLIPSE 
PIECHART 
ROUND_RECTANGLE 
ELLIPTICAL_ARC 
ARC 
LINE 
RECTANGLE 
SHEET_SYMBOL 
SHEET_ENTRY 
POWER_PORT 
PORT 
NO_ERC 
NET_LABEL 
BUS 
WIRE 
TEXT_FRAME 
JUNCTION 
IMAGE 
SHEET 
SHEET_NAME 
FILE_NAME 
DESIGNATOR 
BUS_ENTRY 
TEMPLATE 
PARAMETER 
PARAMETER_SET 
IMPLEMENTATION_LIST 
IMPLEMENTATION 
MAP_DEFINER_LIST 
MAP_DEFINER 
IMPL_PARAMS 
NOTE 
COMPILE_MASK 
HARNESS_CONNECTOR 
HARNESS_ENTRY 
HARNESS_TYPE 
SIGNAL_HARNESS 
BLANKET 
HYPERLINK 

Definition at line 57 of file altium_parser_sch.h.

◆ ASCH_LABEL_JUSTIFICATION

enum class ASCH_LABEL_JUSTIFICATION
strong
Enumerator
UNKNOWN 
BOTTOM_LEFT 
BOTTOM_CENTER 
BOTTOM_RIGHT 
CENTER_LEFT 
CENTER_CENTER 
CENTER_RIGHT 
TOP_LEFT 
TOP_CENTER 
TOP_RIGHT 

Definition at line 345 of file altium_parser_sch.h.

◆ ASCH_PIN_ELECTRICAL

enum class ASCH_PIN_ELECTRICAL
strong
Enumerator
UNKNOWN 
INPUT 
BIDI 
OUTPUT 
OPEN_COLLECTOR 
PASSIVE 
TRISTATE 
OPEN_EMITTER 
POWER 

Definition at line 299 of file altium_parser_sch.h.

◆ ASCH_PIN_SYMBOL_EDGE

enum class ASCH_PIN_SYMBOL_EDGE
strong
Enumerator
UNKNOWN 
NO_SYMBOL 
NEGATED 
RIGHTLEFT 
CLOCK 
LOW_INPUT 
ANALOG_IN 
NOLOGICCONNECT 
POSTPONE_OUTPUT 
OPEN_COLLECTOR 
HIZ 
HIGH_CURRENT 
PULSE 
SCHMITT 
LOW_OUTPUT 
OPEN_COLLECTOR_PULL_UP 
OPEN_EMITTER 
OPEN_EMITTER_PULL_UP 
DIGITAL_IN 
SHIFT_LEFT 
OPEN_OUTPUT 
LEFTRIGHT 
BIDI 

Definition at line 177 of file altium_parser_sch.h.

◆ ASCH_POLYLINE_LINESTYLE

enum class ASCH_POLYLINE_LINESTYLE
strong
Enumerator
SOLID 
DASHED 
DOTTED 
DASH_DOTTED 

Definition at line 437 of file altium_parser_sch.h.

◆ ASCH_PORT_IOTYPE

enum class ASCH_PORT_IOTYPE
strong
Enumerator
UNSPECIFIED 
OUTPUT 
INPUT 
BIDI 

Definition at line 607 of file altium_parser_sch.h.

◆ ASCH_PORT_STYLE

enum class ASCH_PORT_STYLE
strong
Enumerator
NONE_HORIZONTAL 
LEFT 
RIGHT 
LEFT_RIGHT 
NONE_VERTICAL 
TOP 
BOTTOM 
TOP_BOTTOM 

Definition at line 616 of file altium_parser_sch.h.

◆ ASCH_POWER_PORT_STYLE

enum class ASCH_POWER_PORT_STYLE
strong
Enumerator
UNKNOWN 
CIRCLE 
ARROW 
BAR 
WAVE 
POWER_GROUND 
SIGNAL_GROUND 
EARTH 
GOST_ARROW 
GOST_POWER_GROUND 
GOST_EARTH 
GOST_BAR 

Definition at line 643 of file altium_parser_sch.h.

◆ ASCH_RECORD_ORIENTATION

enum class ASCH_RECORD_ORIENTATION
strong
Enumerator
RIGHTWARDS 
UPWARDS 
LEFTWARDS 
DOWNWARDS 

Definition at line 111 of file altium_parser_sch.h.

◆ ASCH_SHEET_ENTRY_SIDE

enum class ASCH_SHEET_ENTRY_SIDE
strong
Enumerator
LEFT 
RIGHT 
TOP 
BOTTOM 

Definition at line 446 of file altium_parser_sch.h.

◆ ASCH_SHEET_SIZE

enum class ASCH_SHEET_SIZE
strong
Enumerator
UNKNOWN 
A4 
A3 
A2 
A1 
A0 
LETTER 
LEGAL 
TABLOID 
ORCAD_A 
ORCAD_B 
ORCAD_C 
ORCAD_D 
ORCAD_E 

Definition at line 777 of file altium_parser_sch.h.

◆ ASCH_SHEET_WORKSPACEORIENTATION

Enumerator
LANDSCAPE 
PORTRAIT 

Definition at line 804 of file altium_parser_sch.h.

◆ ASCH_TEXT_FRAME_ALIGNMENT

enum class ASCH_TEXT_FRAME_ALIGNMENT
strong
Enumerator
LEFT 
CENTER 
RIGHT 

Definition at line 361 of file altium_parser_sch.h.

Function Documentation

◆ ASchSheetGetSize()

VECTOR2I ASchSheetGetSize ( ASCH_SHEET_SIZE  aSheetSize)

Definition at line 773 of file altium_parser_sch.cpp.

References A, A0, A1, A2, A3, A4, B, C, D, E, LEGAL, LETTER, ORCAD_A, ORCAD_B, ORCAD_C, ORCAD_D, ORCAD_E, and TABLOID.

Variable Documentation

◆ ALTIUM_COMPONENT_NONE