KiCad PCB EDA Suite
ASCH_STORAGE_FILE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_STORAGE_FILE (ALTIUM_PARSER &aReader)
 

Public Attributes

wxString filename
 
std::vector< char > data
 

Detailed Description

Definition at line 41 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_STORAGE_FILE()

ASCH_STORAGE_FILE::ASCH_STORAGE_FILE ( ALTIUM_PARSER aReader)
explicit

Definition at line 94 of file altium_parser_sch.cpp.

95 {
96  aReader.Skip( 5 );
97  filename = aReader.ReadWxString();
98  uint32_t dataSize = aReader.Read<uint32_t>();
99  data = aReader.ReadVector( dataSize );
100 
101  if( aReader.HasParsingError() )
102  THROW_IO_ERROR( "Storage stream was not parsed correctly" );
103 }
std::vector< char > data
void Skip(size_t aLength)
std::vector< char > ReadVector(size_t aSize)
Definition: altium_parser.h:87
wxString ReadWxString()
Definition: altium_parser.h:69
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38
bool HasParsingError()

References data, filename, ALTIUM_PARSER::HasParsingError(), ALTIUM_PARSER::Read(), ALTIUM_PARSER::ReadVector(), ALTIUM_PARSER::ReadWxString(), ALTIUM_PARSER::Skip(), and THROW_IO_ERROR.

Member Data Documentation

◆ data

std::vector<char> ASCH_STORAGE_FILE::data

Definition at line 44 of file altium_parser_sch.h.

Referenced by ASCH_STORAGE_FILE(), and SCH_ALTIUM_PLUGIN::ParseImage().

◆ filename

wxString ASCH_STORAGE_FILE::filename

Definition at line 43 of file altium_parser_sch.h.

Referenced by ASCH_STORAGE_FILE().


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