OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
Via.h
1#pragma once
2
3#include "../odbdesign_export.h"
4#include <string>
5#include <vector>
6#include <map>
7#include <memory>
8#include "../enums.h"
9#include "via.pb.h"
10#include "../IProtoBuffable.h"
11
12
13namespace Odb::Lib::ProductModel
14{
15 class ODBDESIGN_EXPORT Via : public IProtoBuffable<Odb::Lib::Protobuf::ProductModel::Via>
16 {
17 public:
18 Via();
19
20 std::string GetName() const;
21 BoardSide GetSide() const;
22
23 // Inherited via IProtoBuffable
24 std::unique_ptr<Odb::Lib::Protobuf::ProductModel::Via> to_protobuf() const override;
25 void from_protobuf(const Odb::Lib::Protobuf::ProductModel::Via& message) override;
26
27 typedef std::vector<std::shared_ptr<Via>> Vector;
28 typedef std::map<std::string, std::shared_ptr<Via>> StringMap;
29
30 private:
31 std::string m_name;
32 BoardSide m_side;
33
34 };
35} // namespace Odb::Lib::ProductModel