12 #ifndef __PRM_ScriptPage__
13 #define __PRM_ScriptPage__
19 #define ISERROR(msg) { is.error(msg); return 0; }
20 #define ISWARNING(msg) { is.warning(msg); }
35 PRM_SCRIPT_RMAN = 0x01,
36 PRM_SCRIPT_SHELL = 0x02,
37 PRM_SCRIPT_VEX = 0x04,
38 PRM_SCRIPT_INVISIBLE = 0x08,
39 PRM_SCRIPT_INVISIBLETAB = 0x10,
40 PRM_SCRIPT_OBSOLETE = 0x20
47 bool expect_open_brace,
50 bool fix_invalid_joins=
true,
51 int multiparm_depth=0);
53 void appendScriptParms(
56 const char *
getToken()
const {
return myToken; }
57 void setToken(
const char *token) { myToken = token; }
58 const char *
getLabel()
const {
return myLabel; }
65 {
return myConditionalGroup; }
67 {
return myConditionalPage; }
69 void enforceOptions();
71 bool containsReservedName()
const;
76 if (!myDefault.isstring())
77 myDefault.harden(str);
80 void setFlag(
unsigned flag) { myFlag |= flag; }
82 unsigned getFlag(
unsigned bit)
const {
return myFlag & bit;}
85 virtual int countParameters()
const;
89 int computeTemplateSize();
98 int computeObsoleteTemplateSize();
121 int multiparm_depth);
127 int nest_level,
int switcher_idx,
PRM_ScriptImports * myImports
void fillTemplate(PRM_Template *array, int &idx, PRM_ScriptImports *&imports, int nest_level)
int getParmEntries() const
void setToken(const char *token)
PRM_SpareData * mySpareData
const char * getToken() const
UT_ValArray< PRM_ScriptParm * > myObsoleteParms
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
PRM_ConditionalGroup * getPageConditional() const
PRM_ConditionalGroup * myConditionalPage
void setFlag(unsigned flag)
void setEmptyDefault(const char *str)
const char * getDefault() const
void clearFlag(unsigned flag)
PRM_ConditionalGroup * getGroupConditional() const
PRM_ScriptParm * getParm(int i)
This class allow setting multiple conditionals for a PRM_Template.
const char * getLabel() const
PRM_ConditionalGroup * myConditionalGroup
unsigned getFlag(unsigned bit) const
UT_ValArray< PRM_ScriptParm * > myParms