20 #ifndef __SCAFREX_INC__
21 #define __SCAFREX_INC__
28 #include <libbbb/memtrack.h>
29 #include <libbbb/rexscript.h>
30 #include <scaffold/scaffold-predefined-commands.h>
39 class QCoreApplication;
56 class Scafrex :
public bbb::RexScript,
public MemTrack {
66 # define VGLOB_PRJPATH "PRJPATH"
69 # define VGLOB_TPATH "TPATH"
72 # define VGLOB_DMP_TIMEOUT "DMP_TIMEOUT"
74 # define VGLOB_DMP_EDITCOST "DMP_EDITCOST"
76 # define VGLOB_DMP_TRESH "DMP_TRESH"
78 # define VGLOB_DMP_DIST "DMP_DIST"
80 # define VGLOB_DMP_DELTRESH "DMP_DELTRESH"
82 # define VGLOB_DMP_MARGIN "DMP_MARGIN"
110 const QStringList & init_files,
111 const bbb::VarMap & var_map
118 int run ( QCoreApplication & app );
124 bool helperLogType (
const QString & s_val,
int & ty );
134 bbb::VarMap * decideVar (
135 const QString & s_in,
153 virtual QString interpret (
154 const QString & s_in,
156 bbb::VarMap * vm = NULL
168 virtual bbb::VarData * getVarData (
const QString & s,
bool b_create =
true );
171 virtual bool delVariable (
176 void initMyCommands (
void );
188 bool fixFilePath (
const QString & s_in, QString & s_out );
196 static bool commandProject ( RexScript * rexs,
const CmdEntry & cmd );
197 static bool commandGenerator ( RexScript * rexs,
const CmdEntry & cmd );
198 static bool commandTemplate ( RexScript * rexs,
const CmdEntry & cmd );
199 static bool commandOverwrite ( RexScript * rexs,
const CmdEntry & cmd );
204 static bool blockDescr ( RexScript * rexs,
const bbb::RexSBCallBack * blk );
223 #endif // __SCAFREX_INC__