export_templated_file.hpp
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 
32 #ifndef ACADO_TOOLKIT_EXPORT_TEMPLATED_FILE_HPP
33 #define ACADO_TOOLKIT_EXPORT_TEMPLATED_FILE_HPP
34 
36 
37 #include <map>
38 
40 
44 
53 {
54 public:
55 
56  friend class ExportQpOasesInterface;
62  friend class OCPexport;
63  friend class SIMexport;
64 
68 
69 
80  ExportTemplatedFile( const std::string& _templateName,
81  const std::string& _fileName,
82  const std::string& _commonHeaderName = "",
83  const std::string& _realString = "real_t",
84  const std::string& _intString = "int",
85  int _precision = 16,
86  const std::string& _commentString = std::string()
87  );
88 
91  {}
92 
93 
106  virtual returnValue setup( const std::string& _templateName,
107  const std::string& _fileName,
108  const std::string& _commonHeaderName = "",
109  const std::string& _realString = "real_t",
110  const std::string& _intString = "int",
111  int _precision = 16,
112  const std::string& _commentString = std::string()
113  );
114 
115 
121  {
122  return fillTemplate( );
123  }
124 
125 protected:
126 
130  std::string templateName;
132  std::map< std::string, std::string > dictionary;
134  std::string folders;
135 };
136 
138 
139 #endif // ACADO_TOOLKIT_EXPORT_TEMPLATED_FILE_HPP
virtual returnValue setup(const std::string &_templateName, const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string())
std::map< std::string, std::string > dictionary
A class for generating the glue code and makefile for interfacing generated code and Simulink...
Allows to pass back messages to the calling function.
A class for generating some helper functions.
#define CLOSE_NAMESPACE_ACADO
Allows to export files containing automatically generated algorithms for fast model predictive contro...
Definition: export_file.hpp:52
A class for generating the glue code for interfacing qpOASES.
User-interface to automatically generate simulation algorithms for fast optimal control.
Definition: sim_export.hpp:60
Allows export of template files.
A class for generating code implementing a symmetric EigenValue Decomposition.
A class for generating some helper functions.
A user class for auto-generation of OCP solvers.
Definition: ocp_export.hpp:57
#define BEGIN_NAMESPACE_ACADO
A class for generating the glue code for interfacing qpOASES.
virtual returnValue configure()


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