C# Class GenerateQTProject.ProjectFileParser

This class provides an abstract interface to load defines, includes and engine path from a project file
Datei anzeigen Open project: NAlphaDev/Unreal-Qt-project-generator Class Usage Examples

Protected Properties

Property Type Description
projectFileContent string

Public Methods

Method Description
GetEngineDefines ( ) : string

Retrieve engine defines in QtCreator format

GetEngineIncludes ( ) : string

Retrieve engine includes in QtCreator format

GetEnginePath ( ) : string

Retrieve engine path from project file

IsLauncherBuild ( ) : bool

Is the engine build which is associated with this project a launcher build?

ProjectFileParser ( string projectPath, string projectName ) : System.IO

Loads content of the code project file into projectFileContent

Protected Methods

Method Description
ConvertDefinesToQtFormat ( string defines ) : string

Converts defines to Qt format

ConvertIncludesToQtFormat ( string includes ) : string

Converts includes to Qt format

ExtractEngineDefines ( ) : string

Read engine defines from project file (can be implemented with Regex or String operations)

ExtractEngineIncludes ( ) : string

Read engine includes from project file (can be implemented with Regex or String operations)

GetUnrealPathRegexPattern ( ) : string

Stores a regex which matches the Unreal Engine path in the project file. IMPORTANT: The part of the matching pattern which contains the actual string needs to be in the matching group "path"

LoadProjectFile ( string path, string projectName ) : string

Loads the project file content

Method Details

ConvertDefinesToQtFormat() protected abstract method

Converts defines to Qt format
protected abstract ConvertDefinesToQtFormat ( string defines ) : string
defines string Defines in original format
return string

ConvertIncludesToQtFormat() protected abstract method

Converts includes to Qt format
protected abstract ConvertIncludesToQtFormat ( string includes ) : string
includes string Includes in original format
return string

ExtractEngineDefines() protected abstract method

Read engine defines from project file (can be implemented with Regex or String operations)
protected abstract ExtractEngineDefines ( ) : string
return string

ExtractEngineIncludes() protected abstract method

Read engine includes from project file (can be implemented with Regex or String operations)
protected abstract ExtractEngineIncludes ( ) : string
return string

GetEngineDefines() public method

Retrieve engine defines in QtCreator format
public GetEngineDefines ( ) : string
return string

GetEngineIncludes() public method

Retrieve engine includes in QtCreator format
public GetEngineIncludes ( ) : string
return string

GetEnginePath() public method

Retrieve engine path from project file
public GetEnginePath ( ) : string
return string

GetUnrealPathRegexPattern() protected abstract method

Stores a regex which matches the Unreal Engine path in the project file. IMPORTANT: The part of the matching pattern which contains the actual string needs to be in the matching group "path"
protected abstract GetUnrealPathRegexPattern ( ) : string
return string

IsLauncherBuild() public method

Is the engine build which is associated with this project a launcher build?
public IsLauncherBuild ( ) : bool
return bool

LoadProjectFile() protected abstract method

Loads the project file content
protected abstract LoadProjectFile ( string path, string projectName ) : string
path string Path to the Unreal Engine project folder
projectName string Name of the .uproject file
return string

ProjectFileParser() public method

Loads content of the code project file into projectFileContent
public ProjectFileParser ( string projectPath, string projectName ) : System.IO
projectPath string Path to the project folder
projectName string Name of .uproject file
return System.IO

Property Details

projectFileContent protected_oe property

protected string projectFileContent
return string