KiCad PCB EDA Suite
Loading...
Searching...
No Matches
datafile_read_write.h
Go to the documentation of this file.
1#ifndef DATAFILE_READ_WRITE_H_
2#define DATAFILE_READ_WRITE_H_
3/*
4 * This program source code file is part of KiCad, a free EDA CAD application.
5 *
6 * Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#include <pcb_calculator_datafile_lexer.h>
23
25
31{
32public:
34
35 int WriteHeader( OUTPUTFORMATTER* aFormatter ) const ;
36 void Format( OUTPUTFORMATTER* aFormatter, int aNestLevel ) const ;
38
39private:
41
42protected:
44};
45
46
50class PCB_CALCULATOR_DATAFILE_PARSER : public PCB_CALCULATOR_DATAFILE_LEXER
51{
52public:
54 PCB_CALCULATOR_DATAFILE_PARSER( char* aLine, const wxString& aSource );
55 LINE_READER* GetReader() { return reader; };
56 void Parse( PCB_CALCULATOR_DATAFILE* aDataList );
58};
59
60#endif // PDATAFILE_READ_WRITE_H_
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
Definition: richio.h:93
An interface used to output 8 bit text in a convenient way.
Definition: richio.h:322
Parser for PCB_CALCULATOR_DATAFILE.
void Parse(PCB_CALCULATOR_DATAFILE *aDataList)
void ParseRegulatorDescr(PCB_CALCULATOR_DATAFILE *aDataList)
PCB_CALCULATOR_DATAFILE handles data to calculate regulators parameters.
void Parse(PCB_CALCULATOR_DATAFILE_PARSER *aParser)
void Format(OUTPUTFORMATTER *aFormatter, int aNestLevel) const
int WriteHeader(OUTPUTFORMATTER *aFormatter) const