export_argument_list.hpp
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 
00034 #ifndef ACADO_TOOLKIT_EXPORT_ARGUMENT_LIST_HPP
00035 #define ACADO_TOOLKIT_EXPORT_ARGUMENT_LIST_HPP
00036 
00037 
00038 #include <acado/utils/acado_utils.hpp>
00039 #include <acado/code_generation/export_argument.hpp>
00040 
00041 BEGIN_NAMESPACE_ACADO
00042 
00043 
00054 class ExportArgumentList
00055 {
00056         //
00057         // PUBLIC MEMBER FUNCTIONS:
00058         //
00059         public:
00060 
00063                 ExportArgumentList( );
00064 
00077                 ExportArgumentList(     const ExportArgument& _argument1,
00078                                                         const ExportArgument& _argument2 = emptyConstExportArgument,
00079                                                         const ExportArgument& _argument3 = emptyConstExportArgument,
00080                                                         const ExportArgument& _argument4 = emptyConstExportArgument,
00081                                                         const ExportArgument& _argument5 = emptyConstExportArgument,
00082                                                         const ExportArgument& _argument6 = emptyConstExportArgument,
00083                                                         const ExportArgument& _argument7 = emptyConstExportArgument,
00084                                                         const ExportArgument& _argument8 = emptyConstExportArgument,
00085                                                         const ExportArgument& _argument9 = emptyConstExportArgument
00086                                                         );
00087                 
00092                 ExportArgumentList(     const ExportArgumentList& arg
00093                                                         );
00094 
00097                 virtual ~ExportArgumentList( );
00098 
00103                 ExportArgumentList& operator=(  const ExportArgumentList& rhs
00104                                                                                 );
00105 
00106 
00121                 returnValue addArgument(        const ExportArgument& _argument1,
00122                                                                         const ExportArgument& _argument2 = emptyConstExportArgument,
00123                                                                         const ExportArgument& _argument3 = emptyConstExportArgument,
00124                                                                         const ExportArgument& _argument4 = emptyConstExportArgument,
00125                                                                         const ExportArgument& _argument5 = emptyConstExportArgument,
00126                                                                         const ExportArgument& _argument6 = emptyConstExportArgument,
00127                                                                         const ExportArgument& _argument7 = emptyConstExportArgument,
00128                                                                         const ExportArgument& _argument8 = emptyConstExportArgument,
00129                                                                         const ExportArgument& _argument9 = emptyConstExportArgument
00130                                                                         );
00131 
00132 
00137                 uint getNumArguments( ) const;
00138 
00139 
00150                 virtual returnValue exportCode( std::ostream& stream,
00151                                                                                 const std::string& _realString = "real_t",
00152                                                                                 const std::string& _intString = "int",
00153                                                                                 int _precision = 16
00154                                                                                 ) const;
00155 
00156 
00161                 returnValue clear( );
00162                 
00163                 
00168                 returnValue doIncludeType( );
00169                 
00170                 
00175                 returnValue doNotIncludeType( );
00176 
00181                 const std::vector< ExportArgument >& get( ) const;
00182 
00183         //
00184         // PROTECTED MEMBER FUNCTIONS:
00185         //
00186         protected:
00187 
00194                 returnValue addSingleArgument(  const ExportArgument& _argument
00195                                                                                 );
00196 
00197 
00198         //
00199         // DATA MEMBERS:
00200         //
00201         protected:
00202 
00204                 std::vector< ExportArgument > arguments;
00205                 
00207                 bool includeType;
00208 };
00209 
00210 
00211 CLOSE_NAMESPACE_ACADO
00212 
00213 
00214 
00215 #endif  // ACADO_TOOLKIT_EXPORT_ARGUMENT_LIST_HPP
00216 
00217 
00218 /*
00219  *      end of file
00220  */


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 11:58:09