WSF
WsfParseValueType Class Reference

#include <WsfParseRule.hpp>

Collaboration diagram for WsfParseValueType:

Public Types

enum  TypeKind { cSTRUCT , cVALUE , cLIST , cOBJECT_MAP }

Public Member Functions

 WsfParseValueType ()
 WsfParseValueType (WsfParseValue *aValuePtr)
 WsfParseValueType (WsfParseStruct *aStructPtr)
std::string & GetTypeName ()
WsfParseNamedRuleGetTypeRule ()

Static Public Member Functions

static WsfParseValueTypeList (WsfParseValueType *aTemplatedType)
static WsfParseValueTypeObjectMap (WsfParseValueType *aTemplatedType)
static bool IsValidListTemplate (const std::string &aTypeName) noexcept
static bool IsValidObjectMapTemplate (const std::string &aTypeName) noexcept
static bool IsValidTemplate (const std::string &aTypeName) noexcept
static std::string GetContainedTypeName (const std::string &aTypeName) noexcept

Public Attributes

TypeKind mKind
std::string mTypeName
WsfParseStructmStructPtr
WsfParseValuemValuePtr
WsfParseValueTypemTemplateType

Member Enumeration Documentation

◆ TypeKind

Enumerator
cSTRUCT 
cVALUE 
cLIST 
cOBJECT_MAP 

Constructor & Destructor Documentation

◆ WsfParseValueType() [1/3]

WsfParseValueType::WsfParseValueType ( )
inline

References cVALUE, mKind, mStructPtr, mTemplateType, and mValuePtr.

Referenced by List(), and ObjectMap().

◆ WsfParseValueType() [2/3]

WsfParseValueType::WsfParseValueType ( WsfParseValue * aValuePtr)

◆ WsfParseValueType() [3/3]

WsfParseValueType::WsfParseValueType ( WsfParseStruct * aStructPtr)

Member Function Documentation

◆ GetContainedTypeName()

std::string WsfParseValueType::GetContainedTypeName ( const std::string & aTypeName)
staticnoexcept

Get the contained type name from the template type name

Return values
anempty string if aTypeName is an invalid template

References IsValidTemplate().

Referenced by WsfPProxyNode::IsA_ListTypeOf(), and WsfPProxyNode::IsA_MapTypeOf().

◆ GetTypeName()

std::string & WsfParseValueType::GetTypeName ( )
inline

References mTypeName.

Referenced by WsfPProxyRegistry::GetType(), List(), and ObjectMap().

◆ GetTypeRule()

WsfParseNamedRule * WsfParseValueType::GetTypeRule ( )

References mStructPtr, and mValuePtr.

◆ IsValidListTemplate()

bool WsfParseValueType::IsValidListTemplate ( const std::string & aTypeName)
staticnoexcept

Determines whether the given type name is a valid List template

Return values
falseif aTypeName is empty
trueif aTypeName starts with "List"

Referenced by IsValidTemplate().

◆ IsValidObjectMapTemplate()

bool WsfParseValueType::IsValidObjectMapTemplate ( const std::string & aTypeName)
staticnoexcept

Determines whether the given type name is a valid ObjectMap template

Return values
falseif aTypeName is empty
trueif aTypeName starts with "ObjectMap"

Referenced by IsValidTemplate().

◆ IsValidTemplate()

bool WsfParseValueType::IsValidTemplate ( const std::string & aTypeName)
staticnoexcept

Determines whether the given type name is a valid ObjectMap template

Return values
falseif aTypeName is empty
trueif aTypeName starts with "List" or "ObjectMap"

References IsValidListTemplate(), and IsValidObjectMapTemplate().

Referenced by GetContainedTypeName().

◆ List()

WsfParseValueType * WsfParseValueType::List ( WsfParseValueType * aTemplatedType)
inlinestatic

◆ ObjectMap()

WsfParseValueType * WsfParseValueType::ObjectMap ( WsfParseValueType * aTemplatedType)
inlinestatic

Member Data Documentation

◆ mKind

TypeKind WsfParseValueType::mKind

◆ mStructPtr

◆ mTemplateType

WsfParseValueType* WsfParseValueType::mTemplateType

◆ mTypeName

std::string WsfParseValueType::mTypeName

◆ mValuePtr


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