export_data.cpp
Go to the documentation of this file.
00001 /*
00002  *    This file is part of ACADO Toolkit.
00003  *
00004  *    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
00005  *    Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
00006  *    Milan Vukov, Rien Quirynen, KU Leuven.
00007  *    Developed within the Optimization in Engineering Center (OPTEC)
00008  *    under supervision of Moritz Diehl. All rights reserved.
00009  *
00010  *    ACADO Toolkit is free software; you can redistribute it and/or
00011  *    modify it under the terms of the GNU Lesser General Public
00012  *    License as published by the Free Software Foundation; either
00013  *    version 3 of the License, or (at your option) any later version.
00014  *
00015  *    ACADO Toolkit is distributed in the hope that it will be useful,
00016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *    Lesser General Public License for more details.
00019  *
00020  *    You should have received a copy of the GNU Lesser General Public
00021  *    License along with ACADO Toolkit; if not, write to the Free Software
00022  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  */
00025 
00026 
00027 
00035 #include <acado/code_generation/export_data.hpp>
00036 #include <acado/code_generation/export_data_internal.hpp>
00037 
00038 BEGIN_NAMESPACE_ACADO
00039 
00040 
00041 //
00042 // PUBLIC MEMBER FUNCTIONS:
00043 //
00044 
00045 ExportData::ExportData( )
00046 {}
00047 
00048 ExportData::~ExportData( )
00049 {}
00050 
00051 ExportDataInternal* ExportData::operator->()
00052 {
00053         return (ExportDataInternal*)(SharedObject::operator->());
00054 }
00055 
00056 const ExportDataInternal* ExportData::operator->() const
00057 {
00058         return (const ExportDataInternal*)(SharedObject::operator->());
00059 }
00060 
00061 returnValue     ExportData::setName(    const std::string& _name
00062                                                                         )
00063 {
00064         return (*this)->setName( _name );
00065 }
00066 
00067 
00068 returnValue     ExportData::setType(    ExportType _type
00069                                                                         )
00070 {
00071         return (*this)->setType( _type );
00072 }
00073 
00074 returnValue ExportData::setPrefix(      const std::string& _prefix
00075                                                                         )
00076 {
00077         return (*this)->setPrefix( _prefix );
00078 }
00079 
00080 returnValue     ExportData::setDataStruct(      ExportStruct _dataStruct
00081                                                                                 )
00082 {
00083         return (*this)->setDataStruct( _dataStruct );
00084 }
00085 
00086 std::string ExportData::getName( ) const
00087 {
00088         return (*this)->getName();
00089 }
00090 
00091 ExportType ExportData::getType( ) const
00092 {
00093         return (*this)->getType();
00094 }
00095 
00096 std::string ExportData::getPrefix() const
00097 {
00098         return (*this)->getPrefix();
00099 }
00100 
00101 std::string ExportData::getTypeString(  const std::string& _realString,
00102                                                                         const std::string& _intString
00103                                                                         ) const
00104 {
00105         return (*this)->getTypeString(_realString, _intString);
00106 }
00107 
00108 
00109 ExportStruct ExportData::getDataStruct( ) const
00110 {
00111         return (*this)->getDataStruct();
00112 }
00113 
00114 
00115 std::string ExportData::getDataStructString( ) const
00116 {
00117         return (*this)->getDataStructString();
00118 }
00119 
00120 
00121 std::string ExportData::getFullName( ) const
00122 {
00123         return (*this)->getFullName();
00124 }
00125 
00126 returnValue ExportData::exportDataDeclaration(  std::ostream& stream,
00127                                                                                                 const std::string& _realString,
00128                                                                                                 const std::string& _intString,
00129                                                                                                 int _precision
00130                                                                                                 ) const
00131 {
00132         return (*this)->exportDataDeclaration(stream, _realString, _intString, _precision);
00133 }
00134 
00135 bool ExportData::isGiven( )
00136 {
00137         return (*this)->isGiven();
00138 }
00139 
00140 returnValue ExportData::setDoc( const std::string& _doc
00141                                                                 )
00142 {
00143         return (*this)->setDoc( _doc );
00144 }
00145 
00146 std::string ExportData::getDoc( ) const
00147 {
00148         return (*this)->getDoc();
00149 }
00150 
00151 CLOSE_NAMESPACE_ACADO
00152 
00153 // end of file.


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:37:01