libelec
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Data Fields
elec_comp_info_t Struct Reference
Collaboration diagram for elec_comp_info_t:
Collaboration graph
[legend]

Data Fields

elec_comp_type_t type
 
char * name
 
void * userinfo
 
bool autogen
 
char location [32]
 
double int_R
 
unsigned parse_linenum
 
union {
   elec_batt_info_t   batt
 
   elec_gen_info_t   gen
 
   elec_tru_info_t   tru
 
   elec_xfrmr_info_t   xfrmr
 
   elec_load_info_t   load
 
   elec_bus_info_t   bus
 
   elec_cb_info_t   cb
 
   elec_diode_info_t   diode
 
   elec_label_box_info_t   label_box
 
}; 
 
struct {
   vect2_t   pos
 
   double   sz
 
   int   rot
 
   gui_load_type_t   load_type
 
   bool   virt
 
   bool   invis
 
   vect3_t   color
 
gui
 

Detailed Description

Definition at line 396 of file libelec.h.

Field Documentation

◆ autogen

bool autogen

Was this component auto-generated? CBs are auto-generated when specified using the LOADCB stanza.

Definition at line 405 of file libelec.h.

◆ batt

Valid for an ELEC_BATT.

Definition at line 413 of file libelec.h.

◆ bus

Valid for an ELEC_BUS.

Definition at line 419 of file libelec.h.

◆ cb

Valid for an ELEC_CB.

Definition at line 420 of file libelec.h.

◆ diode

Valid for an ELEC_DIODE.

Definition at line 421 of file libelec.h.

◆ gen

Valid for an ELEC_GEN.

Definition at line 414 of file libelec.h.

◆ 

struct { ... } gui

Visual information, for drawing on the network diagram plot

◆ int_R

double int_R

Internal resistance in Ohms.

Definition at line 409 of file libelec.h.

◆ label_box

Valid for an ELEC_LABEL_BOX

Definition at line 423 of file libelec.h.

◆ load

Valid for an ELEC_LOAD.

Definition at line 418 of file libelec.h.

◆ location

char location[32]

Descriptive location name (e.g. breaker panel row & column).

Definition at line 407 of file libelec.h.

◆ name

char* name

Component name.

Definition at line 398 of file libelec.h.

◆ parse_linenum

unsigned parse_linenum

Line number in input file on which the component was found.

Definition at line 411 of file libelec.h.

◆ tru

Valid for an ELEC_TRU and ELEC_INV.

Definition at line 416 of file libelec.h.

◆ type

Component type.

Definition at line 397 of file libelec.h.

◆ userinfo

void* userinfo

Userinfo pointer set using libelec_comp_set_userinfo().

Definition at line 400 of file libelec.h.


The documentation for this struct was generated from the following file: