HDK
|
#include <PDG_Conditional.h>
Public Member Functions | |
PDG_Conditional (const UT_StringHolder &pattern) | |
Constructs a new conditional expression from the input string. More... | |
bool | match (const PDG_NodeInterface *interface, bool expression_default=true) const |
bool | reset (const UT_StringHolder &pattern) |
Resets the condition to the specified pattern. More... | |
Public Member Functions inherited from PDG_BasePattern | |
PDG_BasePattern (const UT_StringHolder &pattern) | |
Constructs a default-initialized, invalid pattern. More... | |
bool | isValid () const |
const UT_WorkBuffer & | errors () const |
If the pattern is invalid, contains parse errors. More... | |
const UT_StringHolder & | pattern () const |
Returns the pattern used to construct this object. More... | |
bool | hasPattern () const |
Returns true if there is a pattern set. More... | |
void | reset (const UT_StringHolder &pattern) |
Resets the pattern. More... | |
Additional Inherited Members | |
Protected Types inherited from PDG_BasePattern | |
enum | ParseTokens : uint8 { eStarToken = '*', eExcludeToken = '^', eSeparatorToken = ':', eRangeToken = '-', eQuoteToken = '"', eEscapeToken = '\\', eRangeBeginToken = '[', eRangeEndToken = ']', eAttributeToken = '@', eComponentToken = '.' } |
Special tokens, in addition to alphanumeric and whitespace. More... | |
Protected Attributes inherited from PDG_BasePattern | |
UT_WorkBuffer | myErrors |
Parse errors. More... | |
UT_StringHolder | myPattern |
The pattern used to construct this object. More... | |
bool | myIsValid |
Whether or not the pattern is valid. More... | |
Definition at line 27 of file PDG_Conditional.h.
PDG_Conditional::PDG_Conditional | ( | const UT_StringHolder & | pattern | ) |
Constructs a new conditional expression from the input string.
bool PDG_Conditional::match | ( | const PDG_NodeInterface * | interface, |
bool | expression_default = true |
||
) | const |
Checks if the condition is true or false for the specified node interface
bool PDG_Conditional::reset | ( | const UT_StringHolder & | pattern | ) |
Resets the condition to the specified pattern.