PIDUINO
Loading...
Searching...
No Matches
manufacturer.h
1/* Copyright © 2018-2025 Pascal JEAN, All rights reserved.
2 * This file is part of the Piduino Library.
3 *
4 * The Piduino Library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
8 *
9 * The Piduino Library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with the Piduino Library; if not, see <http://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <string>
20
28namespace Piduino {
29
31 public:
32
33 enum Id {
43 // Add New item here and update manufactuer table in database !
44
45 //---
46 Unknown = -1
47 };
48
50 setId (i);
51 }
52 virtual ~Manufacturer() {}
53
54 inline Id id() const {
55 return _id;
56 }
57
58 inline const std::string &name() const {
59 return _name;
60 }
61
62 void setId (Id i);
63
64 private:
66 std::string _name;
67 };
68}
73/* ========================================================================== */
const std::string & name() const
Manufacturer(Id i=Unknown)
Global namespace for Piduino.
Definition board.h:28