This application creates a new c++ class (header and cpp file). A dialog allows the user to supply the target for the source and new module name and a new class name.
The resulting header file is depicted below.
[codesyntax lang=”cpp”]
/* * newclassh.h * * Created on: Apr 5, 2018 * Author: Mr. Arch Brooks */ #ifndef NEWCLASSH_H_ #define NEWCLASSH_H_ /** * This is some test Doc Text */ class ncl { /** * Private Declarations Go Here */ private: /** * Public Declarations Go Here */ public: void gui(); void mainProc(); }; #endif /* NEWCLASSH_H_ */
[/codesyntax]
The associated c++ file is depicted below.
[codesyntax lang=”cpp”]
/* * newclassh.cpp * * Created on: Apr 5, 2018 * Author: Mr. Arch Brooks */ #include "newclassh.h" using namespace std; // @suppress("Symbol is not resolved") void ncl::gui(){ } void ncl::mainProc(){ }
[/codesyntax]
This simple code generator reads skeleton files and scripts them in order to produce newly created source code.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.