A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
IDlgParser Class Referenceabstract

#include <IDlgParser.h>

Inheritance diagram for IDlgParser:
[legend]

Public Member Functions

virtual ~IDlgParser ()
 
virtual void InitializeParser (const FString &FilePath)=0
 
virtual void InitializeParserFromString (const FString &Text)
 
bool IsLogVerbose () const
 
virtual bool IsValidFile () const =0
 
virtual void ReadAllProperty (const UStruct *ReferenceClass, void *TargetObject, UObject *DefaultObjectOuter=nullptr)=0
 
void SetLogVerbose (bool bValue)
 

Protected Member Functions

const UClass * GetChildClassFromName (const UClass *ParentClass, const FString &Name)
 

Static Protected Member Functions

static UObjectCreateNewUObject (const UClass *StructDefinition, UObject *ObjectOuter)
 

Protected Attributes

bool bLogVerbose = false
 
TArray< UClass * > StructCache
 

Detailed Description

Definition at line 9 of file IDlgParser.h.

Constructor & Destructor Documentation

◆ ~IDlgParser()

virtual IDlgParser::~IDlgParser ( )
inlinevirtual

Definition at line 12 of file IDlgParser.h.

Member Function Documentation

◆ CreateNewUObject()

static UObject * IDlgParser::CreateNewUObject ( const UClass * StructDefinition,
UObject * ObjectOuter )
inlinestaticprotected

Default way to create new objects

Definition at line 70 of file IDlgParser.h.

Here is the caller graph for this function:

◆ GetChildClassFromName()

const UClass * IDlgParser::GetChildClassFromName ( const UClass * ParentClass,
const FString & Name )
inlineprotected

Searches the proper not abstract class

Parameters
ParentClassthe class we are looking for has to inherit from this class
Namethe name of the class we are looking for (without engine pretags, e.g. Actor for AActor)
Returns
the class, or nullptr if it does not exist

Definition at line 45 of file IDlgParser.h.

Here is the caller graph for this function:

◆ InitializeParser()

virtual void IDlgParser::InitializeParser ( const FString & FilePath)
pure virtual

Initializes the parser with the specified FilePath.

Implemented in FDlgConfigParser, and FDlgJsonParser.

Here is the caller graph for this function:

◆ InitializeParserFromString()

virtual void IDlgParser::InitializeParserFromString ( const FString & Text)
inlinevirtual

Initializes the parser with the specified input string

Reimplemented in FDlgConfigParser, and FDlgJsonParser.

Definition at line 18 of file IDlgParser.h.

◆ IsLogVerbose()

bool IDlgParser::IsLogVerbose ( ) const
inline

Definition at line 33 of file IDlgParser.h.

◆ IsValidFile()

virtual bool IDlgParser::IsValidFile ( ) const
pure virtual

Is the parsed file valid?

Implemented in FDlgConfigParser, and FDlgJsonParser.

◆ ReadAllProperty()

virtual void IDlgParser::ReadAllProperty ( const UStruct * ReferenceClass,
void * TargetObject,
UObject * DefaultObjectOuter = nullptr )
pure virtual

Reads all property from the config file.

Parameters
ReferenceClassUStruct (or UClass) of the TargetObject
TargetObjectpointer to the object instance the function will modify based on the config values
DefaultObjectOuterOuter used for UObject construction if necessary

Implemented in FDlgConfigParser, and FDlgJsonParser.

◆ SetLogVerbose()

void IDlgParser::SetLogVerbose ( bool bValue)
inline

Definition at line 34 of file IDlgParser.h.

Member Data Documentation

◆ bLogVerbose

bool IDlgParser::bLogVerbose = false
protected

Definition at line 81 of file IDlgParser.h.

◆ StructCache

TArray<UClass*> IDlgParser::StructCache
protected

each time a class is read it also cached here, so next time when it has to be found based on name it can be found faster

Definition at line 78 of file IDlgParser.h.


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