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 ()
 
 POINT (int aX, int aY)
 
void Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override
 

Detailed Description

Represents a point in x,y coordinates.

Definition at line 401 of file cadstar_archive_parser.h.

Constructor & Destructor Documentation

◆ POINT() [1/2]

CADSTAR_ARCHIVE_PARSER::POINT::POINT ( )
inline

Definition at line 403 of file cadstar_archive_parser.h.

403: wxPoint( UNDEFINED_VALUE, UNDEFINED_VALUE ) {}
static const long UNDEFINED_VALUE

◆ POINT() [2/2]

CADSTAR_ARCHIVE_PARSER::POINT::POINT ( int  aX,
int  aY 
)
inline

Definition at line 404 of file cadstar_archive_parser.h.

404: wxPoint( aX, aY ) {}

Member Function Documentation

◆ Parse()

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

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 405 of file cadstar_archive_parser.cpp.

406{
407 wxASSERT( aNode->GetName() == wxT( "PT" ) );
408
409 x = GetXmlAttributeIDLong( aNode, 0 );
410 y = GetXmlAttributeIDLong( aNode, 1 );
411}
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: