KiCad PCB EDA Suite
Loading...
Searching...
No Matches
orcad_cis.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 modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * 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 ORCAD_CIS_H_
21#define ORCAD_CIS_H_
22
23#include <cstdint>
24#include <map>
25#include <optional>
26#include <string>
27#include <vector>
28
29
30using ORCAD_CIS_PROPERTIES = std::map<std::string, std::string>;
31using ORCAD_CIS_SCHEMATIC_INFO = std::map<std::string, std::map<uint32_t, ORCAD_CIS_PROPERTIES>>;
32
33
34std::vector<std::string> OrcadCisParseCountedList( const std::vector<char>& aData, uint8_t aSeparator );
35
36std::map<uint32_t, std::map<std::string, std::string>> OrcadCisParsePropertyUpdates( const std::vector<char>& aData );
37
38std::map<uint32_t, bool> OrcadCisParseMemberships( const std::vector<char>& aData );
39
40ORCAD_CIS_SCHEMATIC_INFO OrcadCisParseSchematicInfo( const std::vector<char>& aData );
41
42std::string OrcadCisSelectVariant( const std::vector<std::string>& aNames,
43 const std::optional<std::string>& aRequested );
44
45#endif // ORCAD_CIS_H_
std::map< std::string, std::map< uint32_t, ORCAD_CIS_PROPERTIES > > ORCAD_CIS_SCHEMATIC_INFO
Definition orcad_cis.h:31
std::map< uint32_t, bool > OrcadCisParseMemberships(const std::vector< char > &aData)
std::map< std::string, std::string > ORCAD_CIS_PROPERTIES
Definition orcad_cis.h:30
std::map< uint32_t, std::map< std::string, std::string > > OrcadCisParsePropertyUpdates(const std::vector< char > &aData)
std::string OrcadCisSelectVariant(const std::vector< std::string > &aNames, const std::optional< std::string > &aRequested)
ORCAD_CIS_SCHEMATIC_INFO OrcadCisParseSchematicInfo(const std::vector< char > &aData)
std::vector< std::string > OrcadCisParseCountedList(const std::vector< char > &aData, uint8_t aSeparator)
Definition orcad_cis.cpp:92