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 43 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 99 of file altium_parser_sch.cpp.

100{
101 aReader.Skip( 5 );
102 filename = aReader.ReadWxString();
103 uint32_t dataSize = aReader.Read<uint32_t>();
104 data = aReader.ReadVector( dataSize );
105
106 if( aReader.HasParsingError() )
107 THROW_IO_ERROR( "Storage stream was not parsed correctly" );
108}
wxString ReadWxString()
bool HasParsingError()
std::vector< char > ReadVector(size_t aSize)
void Skip(size_t aLength)
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38
std::vector< char > data

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 46 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 45 of file altium_parser_sch.h.

Referenced by ASCH_STORAGE_FILE().


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