export_data.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
27 
37 
39 
40 
41 //
42 // PUBLIC MEMBER FUNCTIONS:
43 //
44 
46 {}
47 
49 {}
50 
52 {
53  return (ExportDataInternal*)(SharedObject::operator->());
54 }
55 
57 {
58  return (const ExportDataInternal*)(SharedObject::operator->());
59 }
60 
61 returnValue ExportData::setName( const std::string& _name
62  )
63 {
64  return (*this)->setName( _name );
65 }
66 
67 
69  )
70 {
71  return (*this)->setType( _type );
72 }
73 
74 returnValue ExportData::setPrefix( const std::string& _prefix
75  )
76 {
77  return (*this)->setPrefix( _prefix );
78 }
79 
81  )
82 {
83  return (*this)->setDataStruct( _dataStruct );
84 }
85 
86 std::string ExportData::getName( ) const
87 {
88  return (*this)->getName();
89 }
90 
92 {
93  return (*this)->getType();
94 }
95 
96 std::string ExportData::getPrefix() const
97 {
98  return (*this)->getPrefix();
99 }
100 
101 std::string ExportData::getTypeString( const std::string& _realString,
102  const std::string& _intString
103  ) const
104 {
105  return (*this)->getTypeString(_realString, _intString);
106 }
107 
108 
110 {
111  return (*this)->getDataStruct();
112 }
113 
114 
116 {
117  return (*this)->getDataStructString();
118 }
119 
120 
121 std::string ExportData::getFullName( ) const
122 {
123  return (*this)->getFullName();
124 }
125 
127  const std::string& _realString,
128  const std::string& _intString,
129  int _precision
130  ) const
131 {
132  return (*this)->exportDataDeclaration(stream, _realString, _intString, _precision);
133 }
134 
136 {
137  return (*this)->isGiven();
138 }
139 
140 returnValue ExportData::setDoc( const std::string& _doc
141  )
142 {
143  return (*this)->setDoc( _doc );
144 }
145 
146 std::string ExportData::getDoc( ) const
147 {
148  return (*this)->getDoc();
149 }
150 
152 
153 // end of file.
virtual ~ExportData()
Definition: export_data.cpp:48
Allows to pass back messages to the calling function.
returnValue setName(const std::string &_name)
Definition: export_data.cpp:61
#define CLOSE_NAMESPACE_ACADO
std::string getPrefix() const
Definition: export_data.cpp:96
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
std::string getTypeString(const std::string &_realString="real_t", const std::string &_intString="int") const
virtual returnValue setDoc(const std::string &_doc)
returnValue setPrefix(const std::string &_prefix)
Definition: export_data.cpp:74
virtual std::string getDoc() const
ExportStruct
ExportStruct getDataStruct() const
returnValue setType(ExportType _type)
Definition: export_data.cpp:68
ExportType
returnValue setDataStruct(ExportStruct _dataStruct)
Definition: export_data.cpp:80
std::string getFullName() const
ExportDataInternal * operator->()
Definition: export_data.cpp:51
virtual bool isGiven()
#define BEGIN_NAMESPACE_ACADO
ExportType getType() const
Definition: export_data.cpp:91
std::string getDataStructString() const
std::string getName() const
Definition: export_data.cpp:86


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:33