KiCad PCB EDA Suite
Loading...
Searching...
No Matches
easypc_classes_base.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef EASYPC_CLASSES_BASE_H
21#define EASYPC_CLASSES_BASE_H
22
23#include <vector>
24
26
27
28namespace EASYPC
29{
30
32constexpr int NEWEST_ITEM_FORMAT = 0x7531;
33
34
37{
38 LOAD_TASK Load( ARCHIVE& aAr ) override;
39 int ItemFormat( const ARCHIVE& aAr ) const override;
40
41 OBJECT* Parent = nullptr;
42 std::vector<OBJECT*> Items;
43};
44
45
48{
49 LOAD_TASK Load( ARCHIVE& aAr ) override;
50 int ItemFormat( const ARCHIVE& aAr ) const override;
51
52 OBJECT* Parent = nullptr;
53};
54
55} // namespace EASYPC
56
57#endif // EASYPC_CLASSES_BASE_H
One archive load stream; it owns every object it creates.
A loader coroutine. Awaiting one queues it on its archive's frame stack instead of nesting the call.
Reader for the serialized streams of Easy-PC and DesignSpark PCB.
constexpr int NEWEST_ITEM_FORMAT
The newest item format a file can carry (30001)
Root of every deserialized object.
A design data member: owner tag only.
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.
int ItemFormat(const ARCHIVE &aAr) const override
The version this object gates on; the base is the archive's current read format.
A list: owner tag, then the items.
std::vector< OBJECT * > Items
int ItemFormat(const ARCHIVE &aAr) const override
The version this object gates on; the base is the archive's current read format.
LOAD_TASK Load(ARCHIVE &aAr) override
Read this object's fields.