WSF
WsfParseStruct Class Reference

#include <WsfParseRule.hpp>

Inheritance diagram for WsfParseStruct:
Collaboration diagram for WsfParseStruct:

Classes

struct  ScriptVariable

Public Member Functions

 WsfParseStruct (WsfParseRuleMemory &aMem, const std::string &aRuleName)
 ~WsfParseStruct () override
WsfParseAttributeFindAttribute (const std::string &aName)
size_t FindAttributeIndex (const std::string &aName)
void Initialize (int aSequence) override
WsfParseAttributeGetAttribute (size_t aIndex)
size_t GetAttributeCount ()
void SetBase (WsfParseStruct *aBasePtr)
WsfParseStructGetBase ()
bool IsType (WsfParseStruct *aBasePtr)
WsfParseValueTypeGetType () override
 If the rule is also a type, return the type.
std::vector< ScriptVariableGetAllScriptVariables ()
Public Member Functions inherited from WsfParseNamedRule
 WsfParseNamedRule (WsfParseRuleMemory &aMem)
 WsfParseNamedRule (WsfParseRuleMemory &aMem, const std::string &aName, WsfParseRule *aRulePtr)
 ~WsfParseNamedRule () override
bool InitializeInputsOutputs ()
WsfParseStructFindStruct (const std::string &aRuleName)
WsfParseNamedRuleFind (const std::string &aRuleName)
WsfParseNamedRuleFindImmediate (const std::string &aRuleName)
WsfParseValueFindValue (const std::string &aTypeName)
bool HasNestedRules () const
WsfParseRuleDictionaryGetNestedRules () override
WsfParseRuleDictionaryGetNested ()
bool Read (WsfParser &aParser, WsfParseNode *&aNode) override
bool ReadRange (WsfParser &aParser, UtTextDocumentRange &aRange, WsfParseNode *&aNode, bool aCreateNode) override
void SetDefinition (WsfParseRule *aRulePtr)
std::string GetFullName () const
WsfParseRuleGetDefinition () const
WsfParseRule *& GetDefinition ()
std::vector< WsfParseRule * > GetSequence () override
WsfParseNamedRuleGetContext () const override
WsfParseRuleGetPassthrough () override
std::string GetRuleDescription () override
WsfParseValueGetRuleValue ()
bool IsPartValueRule ()
void Swap (WsfParseNamedRule &aRhs)
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 void Undo (WsfParser &aParser)
virtual void Resolve (WsfParser &aParser, WsfParseNode *aNodePtr)
virtual std::vector< WsfParseRule * > GetAlternates ()
WsfParseStructGetContainingStruct () const
WsfParseStructGetStruct ()
WsfParseNamedRuleGetEntryType ()
WsfParseNamedRuleGetInputType ()
WsfParseNamedRuleGetOutputType ()
WsfParseNamedRuleGetBestContext ()
WsfParseNamedRuleGetVarContext ()
bool IsNamedRule () const
int GetReaderFlags () const
WsfParseRuleGetSubordinateRule () const
void SetSubordinateRule (WsfParseRule *aRulePtr)

Public Attributes

size_t mBaseAttributeCount
std::vector< WsfParseAttributemAttributes
std::string mBaseName
std::vector< ScriptVariablemScriptVariables
std::vector< WsfParseAction * > mInitialActions
Public Attributes inherited from WsfParseNamedRule
WsfParseNamedRulemContextParent
 The rule inside of which this rule is nested.
std::string mName
std::string mInputTypeName
WsfParseNamedRulemInputTypePtr
std::string mOutputTypeName
WsfParseNamedRulemOutputTypePtr
std::vector< WsfParseRule * > mReferencingRules
Public Attributes inherited from WsfParseRule
RuleType mRuleType
int mReaderFlags
int mUserId
WsfParseRulemParentRulePtr
 Pointer to the parent rule. This should be valid for unnamed rules.

Protected Attributes

WsfParseStructmBasePtr
WsfParseValueTypemTypePtr
Protected Attributes inherited from WsfParseNamedRule
WsfParseRuleDictionarymNestedRules
Protected Attributes inherited from WsfParseRule
WsfParseRulemSubordinateRulePtr

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
}

Constructor & Destructor Documentation

◆ WsfParseStruct()

◆ ~WsfParseStruct()

WsfParseStruct::~WsfParseStruct ( )
override

References mInitialActions.

Member Function Documentation

◆ FindAttribute()

WsfParseAttribute * WsfParseStruct::FindAttribute ( const std::string & aName)

◆ FindAttributeIndex()

size_t WsfParseStruct::FindAttributeIndex ( const std::string & aName)

◆ GetAllScriptVariables()

std::vector< WsfParseStruct::ScriptVariable > WsfParseStruct::GetAllScriptVariables ( )

◆ GetAttribute()

WsfParseAttribute & WsfParseStruct::GetAttribute ( size_t aIndex)
inline

◆ GetAttributeCount()

size_t WsfParseStruct::GetAttributeCount ( )

References mAttributes, and mBaseAttributeCount.

◆ GetBase()

WsfParseStruct * WsfParseStruct::GetBase ( )
inline

◆ GetType()

WsfParseValueType * WsfParseStruct::GetType ( )
overridevirtual

If the rule is also a type, return the type.

Reimplemented from WsfParseRule.

References mTypePtr.

◆ Initialize()

void WsfParseStruct::Initialize ( int aSequence)
overridevirtual

Reimplemented from WsfParseNamedRule.

References WsfParseRule::Initialize().

◆ IsType()

bool WsfParseStruct::IsType ( WsfParseStruct * aBasePtr)
inline

References mBasePtr, and WsfParseStruct().

◆ SetBase()

void WsfParseStruct::SetBase ( WsfParseStruct * aBasePtr)

Member Data Documentation

◆ mAttributes

◆ mBaseAttributeCount

size_t WsfParseStruct::mBaseAttributeCount

◆ mBaseName

std::string WsfParseStruct::mBaseName

◆ mBasePtr

◆ mInitialActions

◆ mScriptVariables

std::vector<ScriptVariable> WsfParseStruct::mScriptVariables

Referenced by GetAllScriptVariables().

◆ mTypePtr

WsfParseValueType* WsfParseStruct::mTypePtr
protected

Referenced by GetType(), and WsfParseStruct().


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