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
28
namespace
Piduino
{
29
30
class
Manufacturer
{
31
public
:
32
33
enum
Id
{
34
Broadcom
= 0,
35
SonyUK
,
36
Qisda
,
37
Egoman
,
38
Embest
,
39
Allwinner
,
40
FriendlyARM
,
41
Stadium
,
42
SonyJapan
,
43
// Add New item here and update manufactuer table in database !
44
45
//---
46
Unknown
= -1
47
};
48
49
Manufacturer
(
Id
i =
Unknown
) {
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
:
65
Id
_id
;
66
std::string
_name
;
67
};
68
}
73
/* ========================================================================== */
Piduino::Manufacturer
Definition
manufacturer.h:30
Piduino::Manufacturer::name
const std::string & name() const
Definition
manufacturer.h:58
Piduino::Manufacturer::id
Id id() const
Definition
manufacturer.h:54
Piduino::Manufacturer::Manufacturer
Manufacturer(Id i=Unknown)
Definition
manufacturer.h:49
Piduino::Manufacturer::_id
Id _id
Definition
manufacturer.h:65
Piduino::Manufacturer::_name
std::string _name
Definition
manufacturer.h:66
Piduino::Manufacturer::~Manufacturer
virtual ~Manufacturer()
Definition
manufacturer.h:52
Piduino::Manufacturer::Id
Id
Definition
manufacturer.h:33
Piduino::Manufacturer::FriendlyARM
@ FriendlyARM
Definition
manufacturer.h:40
Piduino::Manufacturer::Stadium
@ Stadium
Definition
manufacturer.h:41
Piduino::Manufacturer::SonyJapan
@ SonyJapan
Definition
manufacturer.h:42
Piduino::Manufacturer::Embest
@ Embest
Definition
manufacturer.h:38
Piduino::Manufacturer::Qisda
@ Qisda
Definition
manufacturer.h:36
Piduino::Manufacturer::SonyUK
@ SonyUK
Definition
manufacturer.h:35
Piduino::Manufacturer::Unknown
@ Unknown
Definition
manufacturer.h:46
Piduino::Manufacturer::Egoman
@ Egoman
Definition
manufacturer.h:37
Piduino::Manufacturer::Allwinner
@ Allwinner
Definition
manufacturer.h:39
Piduino::Manufacturer::Broadcom
@ Broadcom
Definition
manufacturer.h:34
Piduino::Manufacturer::setId
void setId(Id i)
Piduino
Global namespace for Piduino.
Definition
board.h:28
include
piduino
manufacturer.h
Generated by
1.9.8