KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::POINT Struct Reference

Represents a point in x,y coordinates. More...

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::POINT:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

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

Detailed Description

Represents a point in x,y coordinates.

Definition at line 385 of file cadstar_archive_parser.h.

Constructor & Destructor Documentation

◆ POINT()

CADSTAR_ARCHIVE_PARSER::POINT::POINT ( )
inline

Definition at line 387 of file cadstar_archive_parser.h.

387  : wxPoint( UNDEFINED_VALUE, UNDEFINED_VALUE )
388  {
389  }
static const long UNDEFINED_VALUE

Member Function Documentation

◆ Parse()

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

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 398 of file cadstar_archive_parser.cpp.

399 {
400  wxASSERT( aNode->GetName() == wxT( "PT" ) );
401 
402  x = GetXmlAttributeIDLong( aNode, 0 );
403  y = GetXmlAttributeIDLong( aNode, 1 );
404 }
static long GetXmlAttributeIDLong(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong().

Referenced by CADSTAR_ARCHIVE_PARSER::ParseAllChildPoints().


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