Public Member Functions | Protected Attributes

Allows to export code writing a string. More...

#include <export_statement_string.hpp>

Inheritance diagram for ExportStatementString:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ExportStatementclone () const
virtual returnValue exportCode (std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
 ExportStatementString (const std::string &_statementString=std::string())
virtual ~ExportStatementString ()

Protected Attributes

std::string statementString

Detailed Description

Allows to export code writing a string.

The class ExportStatementstd::string allows to export code writing a string.

Author:
Hans Joachim Ferreau, Boris Houska

Definition at line 54 of file export_statement_string.hpp.


Constructor & Destructor Documentation

BEGIN_NAMESPACE_ACADO ExportStatementString::ExportStatementString ( const std::string &  _statementString = std::string())

Default constructor which optionally takes the string to be exported.

Parameters:
[in]_statementstd::stringstd::string to be exported.

Definition at line 44 of file export_statement_string.cpp.

Destructor.

Definition at line 51 of file export_statement_string.cpp.


Member Function Documentation

Clone constructor (deep copy).

Returns:
Pointer to cloned object.

Implements ExportStatement.

Definition at line 56 of file export_statement_string.cpp.

returnValue ExportStatementString::exportCode ( std::ostream &  stream,
const std::string &  _realString = "real_t",
const std::string &  _intString = "int",
int  _precision = 16 
) const [virtual]

Exports source code of the string into given file. Its appearance can can be adjusted by various options.

Parameters:
[in]streamName of file to be used to export string.
[in]_realSstringstd::string to be used to declare real variables.
[in]_intStringstd::string to be used to declare integer variables.
[in]_precisionNumber of digits to be used for exporting real values.
Returns:
SUCCESSFUL_RETURN

Implements ExportStatement.

Definition at line 62 of file export_statement_string.cpp.


Member Data Documentation

std::string ExportStatementString::statementString [protected]

std::string to be exported.

Definition at line 97 of file export_statement_string.hpp.


The documentation for this class was generated from the following files:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:38