Allows export of template files. More...
#include <export_templated_file.hpp>
Public Member Functions | |
virtual returnValue | configure () |
ExportTemplatedFile (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()) | |
virtual | ~ExportTemplatedFile () |
Protected Member Functions | |
returnValue | fillTemplate () |
Protected Attributes | |
std::map< std::string, std::string > | dictionary |
std::string | folders |
std::string | templateName |
Friends | |
class | ExportAuxiliaryFunctions |
class | ExportAuxiliarySimFunctions |
class | ExportHessianRegularization |
class | ExportQpOasesInterface |
class | ExportSimulinkInterface |
Allows export of template files.
Definition at line 52 of file export_templated_file.hpp.
BEGIN_NAMESPACE_ACADO ExportTemplatedFile::ExportTemplatedFile | ( | 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() |
||
) |
Default constructor.
[in] | _templateName | Name of a template. |
[in] | _fileName | Name of exported file. |
[in] | _commonHeaderName | Name of common header file to be included. |
[in] | _realString | std::string to be used to declare real variables. |
[in] | _intString | std::string to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
[in] | _commentString | std::string to be used for exporting comments. |
Definition at line 41 of file export_templated_file.cpp.
virtual ExportTemplatedFile::~ExportTemplatedFile | ( | ) | [inline, virtual] |
Destructor.
Definition at line 84 of file export_templated_file.hpp.
virtual returnValue ExportTemplatedFile::configure | ( | ) | [inline, virtual] |
Configure the template
Definition at line 91 of file export_templated_file.hpp.
returnValue ExportTemplatedFile::fillTemplate | ( | ) | [protected] |
Fill in the template.
Definition at line 54 of file export_templated_file.cpp.
friend class ExportAuxiliaryFunctions [friend] |
Definition at line 58 of file export_templated_file.hpp.
friend class ExportAuxiliarySimFunctions [friend] |
Definition at line 60 of file export_templated_file.hpp.
friend class ExportHessianRegularization [friend] |
Definition at line 59 of file export_templated_file.hpp.
friend class ExportQpOasesInterface [friend] |
Definition at line 56 of file export_templated_file.hpp.
friend class ExportSimulinkInterface [friend] |
Definition at line 57 of file export_templated_file.hpp.
std::map< std::string, std::string > ExportTemplatedFile::dictionary [protected] |
Dictionary used to fill in the template file.
Definition at line 103 of file export_templated_file.hpp.
std::string ExportTemplatedFile::folders [protected] |
List of folders where templates are stored.
Definition at line 105 of file export_templated_file.hpp.
std::string ExportTemplatedFile::templateName [protected] |
Name of the template file.
Definition at line 101 of file export_templated_file.hpp.