WSF
WsfParseQuotedStringRule Class Reference

#include <WsfParseBasicRules.hpp>

Inheritance diagram for WsfParseQuotedStringRule:
Collaboration diagram for WsfParseQuotedStringRule:

Public Member Functions

 WsfParseQuotedStringRule (WsfParseRuleMemory &aMem, bool aQuotesOptional)
bool Read (WsfParser &aParser, WsfParseNode *&aNode) override
void SetFileReference (const std::string &aFilePath, WsfParser &aParser, WsfParseNode *aNodePtr)
Public Member Functions inherited from WsfParseRule
 WsfParseRule (WsfParseRuleMemory &aMem, RuleType aType)
virtual ~WsfParseRule ()=default
 WsfParseRule (const WsfParseRule &)=default
void Swap (WsfParseRule &aRhs)
RuleType Type () const
 Returns an enumeration specifying the derived type of the reader.
virtual bool ReadRange (WsfParser &aParser, UtTextDocumentRange &aRange, WsfParseNode *&aNode, bool aCreateNode)
virtual void Undo (WsfParser &aParser)
virtual void Resolve (WsfParser &aParser, WsfParseNode *aNodePtr)
virtual void Initialize (int aSequence)
virtual std::vector< WsfParseRule * > GetSequence ()
virtual std::vector< WsfParseRule * > GetAlternates ()
virtual WsfParseRuleDictionaryGetNestedRules ()
virtual WsfParseNamedRuleGetContext () const
virtual WsfParseRuleGetPassthrough ()
virtual std::string GetRuleDescription ()
virtual WsfParseValueTypeGetType ()
 If the rule is also a type, return the type.
WsfParseStructGetContainingStruct () const
WsfParseStructGetStruct ()
WsfParseNamedRuleGetEntryType ()
WsfParseNamedRuleGetInputType ()
WsfParseNamedRuleGetOutputType ()
WsfParseNamedRuleGetBestContext ()
WsfParseNamedRuleGetVarContext ()
bool IsNamedRule () const
int GetReaderFlags () const
WsfParseRuleGetSubordinateRule () const
void SetSubordinateRule (WsfParseRule *aRulePtr)

Public Attributes

bool mQuotesOptional
bool mFileReference
bool mFileSearchPaths
UtStringRef mFileType
Public Attributes inherited from WsfParseRule
RuleType mRuleType
int mReaderFlags
int mUserId
WsfParseRulemParentRulePtr
 Pointer to the parent rule. This should be valid for unnamed rules.

Additional Inherited Members

Public Types inherited from WsfParseRule
enum  RuleType {
  cNAMED_RULE , cVALUE , cSTRUCT , cSEQUENCE ,
  cALTERNATE , cRECURRENCE , cRULE_REFERENCE , cREAL ,
  cINT , cSTRING , cLINE_STRING , cQUOTED_STRING ,
  cLITERAL , cDELIMITED , cTYPE_LOAD , cTYPE_COMMAND ,
  cPASSTHROUGH , cSCRIPT_BLOCK
}
enum  ReaderFlags {
  cCAN_RESOLVE = 1 , cCAN_UNDO = 2 , cIS_SINGLE_TOKEN = 4 , cIS_PASSTHROUGH = 8 ,
  cIS_VALUE_RULE = 0x10
}
Protected Attributes inherited from WsfParseRule
WsfParseRulemSubordinateRulePtr

Constructor & Destructor Documentation

◆ WsfParseQuotedStringRule()

WsfParseQuotedStringRule::WsfParseQuotedStringRule ( WsfParseRuleMemory & aMem,
bool aQuotesOptional )
inline

Member Function Documentation

◆ Read()

bool WsfParseQuotedStringRule::Read ( WsfParser & aParser,
WsfParseNode *& aNode )
overridevirtual

Override to parse and generate a parse node. Parse nodes should be generated even on error conditions if possible.

Parameters
aParserThe parser.
aNodeSet to the resulting parse node.
Returns
'true' if a parse node was generated.

Implements WsfParseRule.

References mFileReference, mQuotesOptional, WsfParser::NewNode(), WsfParser::ReadWord(), SetFileReference(), and WsfParser::UndoRead().

◆ SetFileReference()

Member Data Documentation

◆ mFileReference

bool WsfParseQuotedStringRule::mFileReference

◆ mFileSearchPaths

bool WsfParseQuotedStringRule::mFileSearchPaths

◆ mFileType

UtStringRef WsfParseQuotedStringRule::mFileType

◆ mQuotesOptional

bool WsfParseQuotedStringRule::mQuotesOptional

Referenced by Read(), and WsfParseQuotedStringRule().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved