KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::FORMAT Struct Reference

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::FORMAT:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

void Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override
 

Public Attributes

wxString Type
 
long SomeInt
 It is unclear what this parameter is used for. More...
 
long Version
 Archive version number (e.g. More...
 

Detailed Description

Definition at line 206 of file cadstar_archive_parser.h.

Member Function Documentation

◆ Parse()

void CADSTAR_ARCHIVE_PARSER::FORMAT::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 54 of file cadstar_archive_parser.cpp.

55 {
56  wxASSERT( aNode->GetName() == wxT( "FORMAT" ) );
57 
58  Type = GetXmlAttributeIDString( aNode, 0 );
59  SomeInt = GetXmlAttributeIDLong( aNode, 1 );
60  Version = GetXmlAttributeIDLong( aNode, 2 );
61 }
long SomeInt
It is unclear what this parameter is used for.
static long GetXmlAttributeIDLong(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
long Version
Archive version number (e.g.
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), SomeInt, Type, and Version.

Member Data Documentation

◆ SomeInt

long CADSTAR_ARCHIVE_PARSER::FORMAT::SomeInt

It is unclear what this parameter is used for.

Definition at line 209 of file cadstar_archive_parser.h.

Referenced by Parse().

◆ Type

wxString CADSTAR_ARCHIVE_PARSER::FORMAT::Type

Definition at line 208 of file cadstar_archive_parser.h.

Referenced by CADSTAR_PCB_ARCHIVE_PARSER::Parse(), and Parse().

◆ Version

long CADSTAR_ARCHIVE_PARSER::FORMAT::Version

Archive version number (e.g.

for PCB: 19=> CADSTAR 17.0 archive, 20=> CADSTAR 18.0 archive, 21 => CADSTAR 2018.0 / 2019.0 / 2020.0, etc.)

Definition at line 210 of file cadstar_archive_parser.h.

Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getAngleTenthDegree(), CADSTAR_PCB_ARCHIVE_LOADER::getAngleTenthDegree(), and Parse().


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