Fixed emit of comment string
parent
cdd5ba2517
commit
76a1ae0102
|
@ -25,7 +25,7 @@ public:
|
||||||
std::ostringstream oss; ///< Primary stream for operating on the file
|
std::ostringstream oss; ///< Primary stream for operating on the file
|
||||||
|
|
||||||
/** Create a writer with a filename and delimiter for the header comment */
|
/** Create a writer with a filename and delimiter for the header comment */
|
||||||
FileWriter(const std::string& filename, bool verbose, const std::string& comment_str="");
|
FileWriter(const std::string& filename, bool verbose, const std::string& comment_str);
|
||||||
|
|
||||||
/** Writes the contents of the stringstream to the file, checking if actually new */
|
/** Writes the contents of the stringstream to the file, checking if actually new */
|
||||||
void emit(bool add_header, bool force=false) const;
|
void emit(bool add_header, bool force=false) const;
|
||||||
|
|
|
@ -30,7 +30,7 @@ void Method::matlab_mfile(const string& classPath) const {
|
||||||
|
|
||||||
// open destination m-file
|
// open destination m-file
|
||||||
string wrapperFile = classPath + "/" + name + ".m";
|
string wrapperFile = classPath + "/" + name + ".m";
|
||||||
FileWriter file(wrapperFile, verbose_);
|
FileWriter file(wrapperFile, verbose_, "%");
|
||||||
|
|
||||||
// generate code
|
// generate code
|
||||||
string returnType = returnVal.matlab_returnType();
|
string returnType = returnVal.matlab_returnType();
|
||||||
|
|
|
@ -31,7 +31,7 @@ void StaticMethod::matlab_mfile(const string& toolboxPath, const string& classNa
|
||||||
// open destination m-file
|
// open destination m-file
|
||||||
string full_name = className + "_" + name;
|
string full_name = className + "_" + name;
|
||||||
string wrapperFile = toolboxPath + "/" + full_name + ".m";
|
string wrapperFile = toolboxPath + "/" + full_name + ".m";
|
||||||
FileWriter file(wrapperFile, verbose);
|
FileWriter file(wrapperFile, verbose, "%");
|
||||||
|
|
||||||
// generate code
|
// generate code
|
||||||
string returnType = returnVal.matlab_returnType();
|
string returnType = returnVal.matlab_returnType();
|
||||||
|
|
Loading…
Reference in New Issue