|
@@ -38,7 +38,7 @@ export const getTemplate = ( name: string | undefined, filePathCpp: vscode.Uri ,
|
|
|
name + " & " + name + "::operator=( " + name + " const & rhs )\n{\n //if ( this != &rhs )\n" +
|
|
name + " & " + name + "::operator=( " + name + " const & rhs )\n{\n //if ( this != &rhs )\n" +
|
|
|
" //this->_value = rhs.getValue();\n" +
|
|
" //this->_value = rhs.getValue();\n" +
|
|
|
" return *this;\n}\n\n" +
|
|
" return *this;\n}\n\n" +
|
|
|
- "std::ostream & operator<<( std::ostream & o, " + name + " const & i )\n" +
|
|
|
|
|
|
|
+ "std::ostream & operator<<( std::ostream & o, " + name + " const & i )\n" +
|
|
|
"{\n //o << \"Value = \" << i.getValue();\n return o;\n}\n\n" +
|
|
"{\n //o << \"Value = \" << i.getValue();\n return o;\n}\n\n" +
|
|
|
"\n/*\n** --------------------------------- METHODS ----------------------------------\n*/\n\n" +
|
|
"\n/*\n** --------------------------------- METHODS ----------------------------------\n*/\n\n" +
|
|
|
"\n/* ************************************************************************** */";
|
|
"\n/* ************************************************************************** */";
|
|
@@ -58,7 +58,7 @@ export const getTemplate = ( name: string | undefined, filePathCpp: vscode.Uri ,
|
|
|
"\n\n" +
|
|
"\n\n" +
|
|
|
" private:\n\n" +
|
|
" private:\n\n" +
|
|
|
"};\n\n" +
|
|
"};\n\n" +
|
|
|
- "std::ostream & operator<<( std::ostream & o, " + name + " const & i );"+
|
|
|
|
|
|
|
+ "std::ostream & operator<<( std::ostream & o, " + name + " const & i );"+
|
|
|
"\n\n" +
|
|
"\n\n" +
|
|
|
"#endif /* *" + star + " " + name.toUpperCase() + "_CLASS_H */";
|
|
"#endif /* *" + star + " " + name.toUpperCase() + "_CLASS_H */";
|
|
|
|
|
|