HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_Conditional Class Reference

#include <PDG_Conditional.h>

+ Inheritance diagram for PDG_Conditional:

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_WorkBuffererrors () const
 If the pattern is invalid, contains parse errors. More...
 
const UT_StringHolderpattern () 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...
 

Detailed Description

Definition at line 27 of file PDG_Conditional.h.

Constructor & Destructor Documentation

PDG_Conditional::PDG_Conditional ( const UT_StringHolder pattern)

Constructs a new conditional expression from the input string.

Member Function Documentation

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.


The documentation for this class was generated from the following file: