C# Class GenerateQTProject.ProjectFileParser

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

Protected Properties

Свойство Type Description
projectFileContent string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Converts defines to Qt format
protected abstract ConvertDefinesToQtFormat ( string defines ) : string
defines string Defines in original format
Résultat string

ConvertIncludesToQtFormat() protected abstract méthode

Converts includes to Qt format
protected abstract ConvertIncludesToQtFormat ( string includes ) : string
includes string Includes in original format
Résultat string

ExtractEngineDefines() protected abstract méthode

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

ExtractEngineIncludes() protected abstract méthode

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

GetEngineDefines() public méthode

Retrieve engine defines in QtCreator format
public GetEngineDefines ( ) : string
Résultat string

GetEngineIncludes() public méthode

Retrieve engine includes in QtCreator format
public GetEngineIncludes ( ) : string
Résultat string

GetEnginePath() public méthode

Retrieve engine path from project file
public GetEnginePath ( ) : string
Résultat string

GetUnrealPathRegexPattern() protected abstract méthode

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
Résultat string

IsLauncherBuild() public méthode

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

LoadProjectFile() protected abstract méthode

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
Résultat string

ProjectFileParser() public méthode

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
Résultat System.IO

Property Details

projectFileContent protected_oe property

protected string projectFileContent
Résultat string