97 #if 0 //mtoc++: 'set.Author'
99 setpref(
" KERMOR_DEVEL ",
" author ",value);
105 #if 0 //mtoc++: 'set.AuthorShort'
107 setpref(
" KERMOR_DEVEL ",
" authorshort ",value);
114 #if 0 //mtoc++: 'get.Author'
116 v = getpref(
" KERMOR_DEVEL ",
" author ",
" <No author set> ");
122 #if 0 //mtoc++: 'get.AuthorShort'
124 v = getpref(
" KERMOR_DEVEL ",
" authorshort ",
" <No author short set> ");
130 #if 0 //mtoc++: 'get.Date'
131 function v =
Date() {
132 v = datestr(now,
" yyyy-mm-dd ");
155 fprintf(
" Running KerMor developer setup...\n ");
156 str = sprintf(
" Please enter your full name: ");
157 d.Author= input(str,
" s ");
158 str = sprintf(
" Please enter your author "" s short tag: ");
159 d.AuthorShort= input(str,
" s ");
160 fprintf(
" Finished!\n ");
172 if ~isa(name,
" char ")
173 error(
" The class name must be a string ");
175 Devel.process(name,
" template_class ", varargin[:]);
192 if ~isa(name,
" char ")
193 error(
" The class name must be a string ");
196 Devel.process(name,
" template_fun ", varargin[:]);
216 static function process(name,template_file,dir) {
220 fname = fullfile(dir,[name
" .m "]);
221 if exist(fname,
" file ")
222 error(" File %s already exists. ",fname);
226 fh = fopen(template_file);
227 str = fscanf(fh," %c ");
233 str = strrep(str," $name ",name);
234 str = strrep(str," $date ",d.
Date);
236 str = strrep(str," $author ",d.
Author);
237 str = strrep(str," $mainver ",
KerMor.MainVersion);
238 str = strrep(str," $subver ",
KerMor.SubVersion);
241 fh = fopen(fname, " w+ ");
242 fprintf(fh, " %c ", str);
static function newClass(name, varargin)
Creates a new class using the template_class file.
static function setup()
Setup variables for Kermor Development when Kermor is setup for the first time or any other time manu...
static function newFun(name, varargin)
Creates a new function using the template_fun file.
char Author
The current developing author.
char AuthorShort
Author's short tag for identification in doxygen @new and @change tags.
Matlab's base handle class (documentation generation substitute)
A variable number of input arguments.
Global configuration class for all KerMor run-time settings.
A MatLab character array.
static function Devel inst = Instance()
Returns the singleton instance of Devel.