The ElementData class WARNING This class inherit from PropertiesInterface but only fromXml is actually reimplemented.
More...
#include <elementdata.h>
|
| struct | PlcIO |
| | The PlcIO struct Represents a single IO entry in a PLC master element. More...
|
| struct | PlcMasterData |
| | The PlcMasterData struct Stores all PLC master configuration: IO table, display settings, column visibility. All data is stored in the .elmt file for easy sharing between users. More...
|
| struct | SlaveContactGroup |
| | The SlaveContactGroup struct Defines a contact group that a master element provides for slave elements. Each group specifies the type, subtype, number of displayed contacts, number of terminals, and the labels for each terminal (T1-T20). More...
|
|
| enum | Type {
Simple = 1
, NextReport = 2
, PreviousReport = 4
, AllReport = 6
,
Master = 8
, Slave = 16
, Terminal = 32
, Thumbnail = 64
,
ConductorDefinition = 128
} |
| enum | MasterType { Coil
, Protection
, Commutator
, PLC
} |
| enum | SlaveType {
SSimple
, Power
, DelayOn
, DelayOff
,
delayOnOff
, PLCSlave
} |
| enum | SlaveState { NO
, NC
, SW
, Other
} |
| enum | PlcIOType {
EntreeDigitale
, SortieDigitale
, EntreeAnalogique
, SortieAnalogique
,
EntreeUniverselle
, SortieUniverselle
} |
| enum | TerminalType {
TTGeneric
, TTFuse
, TTSectional
, TTDiode
,
TTGround
} |
| enum | TerminalFunction { TFGeneric
, TFPhase
, TFNeutral
} |
The ElementData class WARNING This class inherit from PropertiesInterface but only fromXml is actually reimplemented.
◆ MasterType
| Enumerator |
|---|
| Coil | |
| Protection | |
| Commutator | |
| PLC | |
◆ PlcIOType
| Enumerator |
|---|
| EntreeDigitale | |
| SortieDigitale | |
| EntreeAnalogique | |
| SortieAnalogique | |
| EntreeUniverselle | |
| SortieUniverselle | |
◆ SlaveState
◆ SlaveType
| Enumerator |
|---|
| SSimple | |
| Power | |
| DelayOn | |
| DelayOff | |
| delayOnOff | |
| PLCSlave | |
◆ TerminalFunction
| Enumerator |
|---|
| TFGeneric | |
| TFPhase | |
| TFNeutral | |
◆ TerminalType
| Enumerator |
|---|
| TTGeneric | |
| TTFuse | |
| TTSectional | |
| TTDiode | |
| TTGround | |
◆ Type
| Enumerator |
|---|
| Simple | |
| NextReport | |
| PreviousReport | |
| AllReport | |
| Master | |
| Slave | |
| Terminal | |
| Thumbnail | |
| ConductorDefinition | |
◆ ElementData()
| ElementData::ElementData |
( |
| ) |
|
|
inline |
◆ ~ElementData()
| ElementData::~ElementData |
( |
| ) |
|
|
inlineoverride |
◆ fromSettings()
| void ElementData::fromSettings |
( |
const QSettings & | settings, |
|
|
const QString | = QString() ) |
|
overridevirtual |
fromSettings load properties to setting file.
- Parameters
-
| settings | : is use for prefix a word before the name of each parameter |
| QString | |
Implements PropertiesInterface.
◆ fromXml()
| bool ElementData::fromXml |
( |
const QDomElement & | xml_element | ) |
|
|
overridevirtual |
ElementData::fromXml load properties from xml element. The tag name of xml_element must be definition and have an attribute "type".
- Parameters
-
| xml_element | : tagName must be 'definition' |
- Returns
- true is successfully loaded
Implements PropertiesInterface.
◆ kindInfoFromXml()
| void ElementData::kindInfoFromXml |
( |
const QDomElement & | xml_element | ) |
|
|
private |
◆ kindInfoToXml()
| QDomElement ElementData::kindInfoToXml |
( |
QDomDocument & | document | ) |
|
◆ masterTypeFromString()
◆ masterTypeToString() [1/2]
| QString ElementData::masterTypeToString |
( |
| ) |
const |
◆ masterTypeToString() [2/2]
◆ operator!=()
| bool ElementData::operator!= |
( |
const ElementData & | data | ) |
const |
◆ operator==()
| bool ElementData::operator== |
( |
const ElementData & | data | ) |
const |
◆ plcIOTypeFromString()
◆ plcIOTypeList()
| QStringList ElementData::plcIOTypeList |
( |
| ) |
|
|
static |
◆ plcIOTypeToString()
| QString ElementData::plcIOTypeToString |
( |
PlcIOType | type | ) |
|
|
static |
◆ plcMasterData()
◆ plcMasterDataFromXml()
| void ElementData::plcMasterDataFromXml |
( |
const QDomElement & | xml_plc | ) |
|
◆ plcMasterDataToXml()
| QDomElement ElementData::plcMasterDataToXml |
( |
QDomDocument & | document | ) |
const |
◆ setPlcMasterData()
◆ setTerminalFunction()
◆ setTerminalLED()
| void ElementData::setTerminalLED |
( |
bool | led | ) |
|
◆ setTerminalType()
◆ slaveContactGroupSubtypeFromString()
◆ slaveContactGroupSubtypeToString()
◆ slaveContactGroupTypeFromString()
◆ slaveContactGroupTypeToString()
◆ slaveStateFromString()
◆ slaveStateToString()
◆ slaveTypeFromString()
◆ slaveTypeToString()
◆ terminalFunction()
◆ terminalFunctionFromString()
◆ terminalFunctionToString()
◆ terminalLed()
| bool ElementData::terminalLed |
( |
| ) |
const |
◆ terminalPropertiesIsOverrided()
| bool ElementData::terminalPropertiesIsOverrided |
( |
| ) |
const |
◆ terminalType()
◆ terminalTypeFromString()
◆ terminalTypeToString()
◆ toSettings()
| void ElementData::toSettings |
( |
QSettings & | settings, |
|
|
const QString | = QString() ) const |
|
overridevirtual |
toSettings Save properties to setting file.
- Parameters
-
| settings | : is use for prefix a word before the name of each parameter |
| QString | |
Implements PropertiesInterface.
◆ toXml()
| QDomElement ElementData::toXml |
( |
QDomDocument & | xml_document | ) |
const |
|
overridevirtual |
toXml Save properties to xml element
- Parameters
-
- Returns
- QDomElement
Implements PropertiesInterface.
◆ translatedPlcIOType()
| QString ElementData::translatedPlcIOType |
( |
PlcIOType | type | ) |
|
|
static |
◆ translatedTerminalFunction()
◆ translatedTerminalType()
◆ typeFromString()
◆ typeToString() [1/2]
| QString ElementData::typeToString |
( |
| ) |
const |
◆ typeToString() [2/2]
◆ m_contact_count
| int ElementData::m_contact_count {1} |
◆ m_drawing_information
| QString ElementData::m_drawing_information |
◆ m_informations
◆ m_master_type
◆ m_max_slaves
| int ElementData::m_max_slaves {-1} |
◆ m_names_list
◆ m_override_terminal_function
◆ m_override_terminal_led
| bool ElementData::m_override_terminal_led = false |
|
private |
◆ m_override_terminal_type
◆ m_plc_master_data
PLC master IO table and display settings.
◆ m_slave_contact_groups
Contact groups defined by master.
◆ m_slave_contact_groups_enabled
| bool ElementData::m_slave_contact_groups_enabled {false} |
Whether slave contact groups table is active.
◆ m_slave_state
◆ m_slave_type
◆ m_terminal_function
◆ m_terminal_function_is_override
| bool ElementData::m_terminal_function_is_override = false |
|
private |
◆ m_terminal_led
| bool ElementData::m_terminal_led = false |
|
private |
◆ m_terminal_led_is_override
| bool ElementData::m_terminal_led_is_override = false |
|
private |
◆ m_terminal_type
◆ m_terminal_type_is_override
| bool ElementData::m_terminal_type_is_override = false |
|
private |
◆ m_type
The documentation for this class was generated from the following files: