Class Reference component

A component (=device) which can be placed in the schematic window. More...

Member

string description
string extractionMethod
string extractionParameter
string extractionDeviceParameter
string label
string prefix
string layout
void setName(string name)
void setLibrary(string library)
string getLibrary()
string getName()
symbol * getSymbol(int pos=0)
void setNameLibrary(string name,string library)
void setSymbol(sheet *symbol)

Detailed Description

a component or device which can be placed in the schematic window

Member Function Documentation


string component::description

description of the component


string component::extractionMethod

method used to extract the component from the layout. For available methods please see: EditComponent and ExtractionDevice.


string component::extractionParameter

parameter for the extraction method used to extract the component from the layout. For available parameter please see: EditComponent and ExtractionDevice.


string component::extractionDeviceParameter

componant parameter used for extracted devices from the layout. For detail please see: EditComponent and ExtractionDevice.


string component::label

description of the component label


string component::prefix

prefix used for device names


string component::layout

layout or macro to be used for this component


void component::setName(string name)

sets the name of the component


void component::setLibrary(string library)

set the library the component belongs to


string component::getLibrary()

Returns: name of the library


string component::getName()

Returns: name of the component


symbol * component::getSymbol(int pos=0)

Returns: a pointer to the symbol of the component. In case the component has more than one symbol, the different symbol can be acces with the pos parameter. The point can be use to edit the symbol. (introduced with release 20180501)


void component::setNameLibrary(string name,string library)

sets the name and the library of the component


void component::setSymbol(sheet *symbol)

extract a symbol of the sheet and sets it to the symbol of this component.