OpenCPN Partial API docs
Loading...
Searching...
No Matches
ds_porttype.cpp
1
/***************************************************************************
2
* Copyright (C) 2014 ALec Leamas *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
8
* *
9
* This program 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 *
12
* GNU General Public License for more details. *
13
* *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, write to the *
16
* Free Software Foundation, Inc., *
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18
***************************************************************************/
19
#include <cassert>
20
21
#include "model/ds_porttype.h"
22
23
std::string DsPortTypeToString(dsPortType type) {
24
switch
(type) {
25
case
DS_TYPE_INPUT_OUTPUT:
26
return
"IN/OUT"
;
27
break
;
28
case
DS_TYPE_OUTPUT:
29
return
"OUT"
;
30
break
;
31
case
DS_TYPE_INPUT:
32
return
"IN"
;
33
break
;
34
};
35
assert(
false
&&
"Compiler error (undefined dsPortType)"
);
36
return
""
;
// for the compiler
37
}
model
src
ds_porttype.cpp
Generated on Sat Mar 1 2025 02:28:51 for OpenCPN Partial API docs by
1.9.8