57 _argument1,_argument2,_argument3,
58 _argument4,_argument5,_argument6,
59 _argument7,_argument8,_argument9 );
76 _argument1,_argument2,_argument3,
77 _argument4,_argument5,_argument6,
78 _argument7,_argument8,_argument9 );
132 if ( ( _name.length() >
fcnPrefix.length() ) &&
143 _argument4,_argument5,_argument6,
144 _argument7,_argument8,_argument9 );
173 _argument4,_argument5,_argument6,
174 _argument7,_argument8,_argument9 );
179 <<
" expects " << _f.
getNumArguments() <<
" argument(s), but you provided " 190 const std::string& _realString,
191 const std::string& _intString,
195 if (
name.empty() == true )
198 stream <<
name <<
"( ";
224 if ( _name.empty() == true )
#define LOG(level)
Just define a handy macro for getting the logger.
Lowest level, the debug level.
returnValue setName(const std::string &_name)
returnValue doNotIncludeType()
ExportFunctionCall(const std::string &_name="acadoFcn", const ExportArgument &_argument1=emptyConstExportArgument, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument)
unsigned getNumArguments() const
ExportFunctionCall & operator=(const ExportFunctionCall &arg)
Allows to pass back messages to the calling function.
Returned value is a error.
ExportStatement & operator=(const ExportStatement &arg)
#define CLOSE_NAMESPACE_ACADO
ExportArgumentList functionArguments
Defines a matrix-valued variable that can be passed as argument to exported functions.
virtual ExportStatement * clone() const
virtual bool isDefined() const
static std::string fcnPrefix
Allows to export code of a function call.
virtual returnValue exportCode(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
returnValue init(const std::string &_name="defaultFunctionName", const ExportArgument &_argument1=emptyConstExportArgument, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument)
Base class for all kind of statements to be exported by the code generation tool. ...
Allows to export code of an arbitrary function.
virtual returnValue exportCode(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
uint getNumArguments() const
std::string getName() const
#define BEGIN_NAMESPACE_ACADO
returnValue addArgument(const ExportArgument &_argument1, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument)
virtual ~ExportFunctionCall()
#define ACADOERROR(retval)