Baptiste Lepilleur's template file for CppUnit Development. (@)Copyright 2001, Baptiste Lepilleur. [-ExtractPath] !!Memo Extract the path from a full filename. path is the filename we need to extract the path from. returns: extracted path. Algo: we iterates the filename from the end until we found a character '\'. !!End !!Params path @@(ProjectPath)@@ !!End !!Code Input path: "@@path@@" !!Set index @@(Strlen @@path@@)@@ !!// !!Set finalpath !!Label LoopExtractPath !!Sub index 1 !!If @@index@@ < 0 !!Goto EndExtractPath !!Endif !!// !!Set lastchar @@(StrSub @@path@@ @@index@@ 1)@@ !!If @@lastchar@@ != "\" !!Goto LoopExtractPath !!Endif !!// !!Add index 1 !!Set finalpath @@(StrSub @@path@@ 0 @@index@@)@@ !!// !!Label EndExtractPath !!Return @@finalpath@@ !!End --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- [+01 Create Class in file] !!Memo Creates a new class in new files (.h/.cpp) and adds them to the project. !!End !!Params classname Ttr parentclassname = classdesc This class represents objectkind Reference Object hasserialize 0 isrefobj 0 inlinectordtor 0 createfile 1 isunittest 0 !!End !!Dialog
Class name: