Centralized place to export the common header for a generated module. More...
#include <export_common_header.hpp>
Public Member Functions | |
returnValue | configure (const std::string &_moduleName, bool _useSinglePrecision, QPSolverName _qpSolver, const std::map< std::string, std::pair< std::string, std::string > > &_options, const std::string &_variables, const std::string &_workspace, const std::string &_functions) |
ExportCommonHeader (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 | ~ExportCommonHeader () |
Centralized place to export the common header for a generated module.
Definition at line 46 of file export_common_header.hpp.
BEGIN_NAMESPACE_ACADO ExportCommonHeader::ExportCommonHeader | ( | 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] | _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] | _commentstd::string | std::string to be used for exporting comments. |
Definition at line 41 of file export_common_header.cpp.
virtual ExportCommonHeader::~ExportCommonHeader | ( | ) | [inline, virtual] |
Destructor.
Definition at line 69 of file export_common_header.hpp.
returnValue ExportCommonHeader::configure | ( | const std::string & | _moduleName, |
bool | _useSinglePrecision, | ||
QPSolverName | _qpSolver, | ||
const std::map< std::string, std::pair< std::string, std::string > > & | _options, | ||
const std::string & | _variables, | ||
const std::string & | _workspace, | ||
const std::string & | _functions | ||
) |
Configure the template
Definition at line 50 of file export_common_header.cpp.