Constructs a PRM_Template list from an embedded .ds file or an istream.
More...
#include <PRM_TemplateBuilder.h>
|
| PRM_TemplateBuilder (const UT_StringHolder &name, const char *dstext, const char **cpp_options=nullptr, int extra_parms=0) |
|
| PRM_TemplateBuilder (const UT_StringHolder &name, UT_IStream &stream, const char **cpp_options=nullptr, int extra_parms=0) |
|
| ~PRM_TemplateBuilder () |
|
PRM_Template * | templates () const |
|
int | templateLength () const |
|
void | setCallback (const UT_StringRef &name, PRM_Callback callback) |
|
void | setChoiceListPtr (const UT_StringRef &name, PRM_ChoiceList *list) |
|
void | setNoResim (const UT_StringRef &name, bool noresim) |
|
void | setNoCook (const UT_StringRef &name, bool nocook) |
|
bool | justBuilt () |
|
PRM_Template * | findTemplate (const UT_StringRef &name) |
| Returns a template pointer by name. Searches nested multiparms. More...
|
|
Constructs a PRM_Template list from an embedded .ds file or an istream.
Definition at line 26 of file PRM_TemplateBuilder.h.
PRM_TemplateBuilder::PRM_TemplateBuilder |
( |
const UT_StringHolder & |
name, |
|
|
const char * |
dstext, |
|
|
const char ** |
cpp_options = nullptr , |
|
|
int |
extra_parms = 0 |
|
) |
| |
extra_parms is the number of additional parameter templates at the head of templates(). That is, the first parameter from the .ds file is loaded into templates()[extra_parms].
PRM_TemplateBuilder::PRM_TemplateBuilder |
( |
const UT_StringHolder & |
name, |
|
|
UT_IStream & |
stream, |
|
|
const char ** |
cpp_options = nullptr , |
|
|
int |
extra_parms = 0 |
|
) |
| |
PRM_TemplateBuilder::~PRM_TemplateBuilder |
( |
| ) |
|
Returns a template pointer by name. Searches nested multiparms.
bool PRM_TemplateBuilder::justBuilt |
( |
| ) |
|
Returns if it was just built, used for any successive one time initialization. Calling this function will mark it as built.
void PRM_TemplateBuilder::setNoResim |
( |
const UT_StringRef & |
name, |
|
|
bool |
noresim |
|
) |
| |
int PRM_TemplateBuilder::templateLength |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: