qpOASES 3.2.1
An Implementation of the Online Active Set Strategy
MessageHandling.ipp
Go to the documentation of this file.
1/*
2 * This file is part of qpOASES.
3 *
4 * qpOASES -- An Implementation of the Online Active Set Strategy.
5 * Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
6 * Christian Kirches et al. All rights reserved.
7 *
8 * qpOASES is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * qpOASES is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with qpOASES; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 */
23
24
36
37
38/*****************************************************************************
39 * P U B L I C *
40 *****************************************************************************/
41
42
43/*
44 * g e t E r r o r V i s i b i l i t y S t a t u s
45 */
50
51
52/*
53 * g e t W a r n i n g V i s i b i l i t y S t a t u s
54 */
59
60
61/*
62 * g e t I n f o V i s i b i l i t y S t a t u s
63 */
68
69
70/*
71 * g e t O u t p u t F i l e
72 */
73inline FILE* MessageHandling::getOutputFile( ) const
74{
75 return outputFile;
76}
77
78
79/*
80 * g e t E r r o r C o u n t
81 */
83{
84 return errorCount;
85}
86
87
88/*
89 * s e t E r r o r V i s i b i l i t y S t a t u s
90 */
92{
93 errorVisibility = _errorVisibility;
94}
95
96
97/*
98 * s e t W a r n i n g V i s i b i l i t y S t a t u s
99 */
101{
102 warningVisibility = _warningVisibility;
103}
104
105
106/*
107 * s e t I n f o V i s i b i l i t y S t a t u s
108 */
110{
111 infoVisibility = _infoVisibility;
112}
113
114
115/*
116 * s e t O u t p u t F i l e
117 */
118inline void MessageHandling::setOutputFile( FILE* _outputFile )
119{
120 outputFile = _outputFile;
121}
122
123
124/*
125 * s e t E r r o r C o u n t
126 */
128{
129 if ( _errorCount >= -1 )
130 {
131 errorCount = _errorCount;
132 return SUCCESSFUL_RETURN;
133 }
134 else
136}
137
138
140
141
142/*
143 * end of file
144 */
returnValue
Defines all symbols for global return values.
Definition MessageHandling.hpp:65
@ RET_INVALID_ARGUMENTS
Definition MessageHandling.hpp:71
@ SUCCESSFUL_RETURN
Definition MessageHandling.hpp:68
VisibilityStatus
Definition Types.hpp:225
int int_t
Definition Types.hpp:180
#define END_NAMESPACE_QPOASES
Definition Types.hpp:110
#define BEGIN_NAMESPACE_QPOASES
Definition Types.hpp:107
returnValue setErrorCount(int_t _errorCount)
Definition MessageHandling.ipp:127
FILE * outputFile
Definition MessageHandling.hpp:432
void setErrorVisibilityStatus(VisibilityStatus _errorVisibility)
Definition MessageHandling.ipp:91
VisibilityStatus getInfoVisibilityStatus() const
Definition MessageHandling.ipp:64
VisibilityStatus infoVisibility
Definition MessageHandling.hpp:430
FILE * getOutputFile() const
Definition MessageHandling.ipp:73
int_t errorCount
Definition MessageHandling.hpp:434
void setOutputFile(FILE *_outputFile)
Definition MessageHandling.ipp:118
int_t getErrorCount() const
Definition MessageHandling.ipp:82
void setWarningVisibilityStatus(VisibilityStatus _warningVisibility)
Definition MessageHandling.ipp:100
VisibilityStatus getWarningVisibilityStatus() const
Definition MessageHandling.ipp:55
VisibilityStatus getErrorVisibilityStatus() const
Definition MessageHandling.ipp:46
void setInfoVisibilityStatus(VisibilityStatus _infoVisibility)
Definition MessageHandling.ipp:109
VisibilityStatus warningVisibility
Definition MessageHandling.hpp:429
VisibilityStatus errorVisibility
Definition MessageHandling.hpp:428