C# Класс GenerateQTProject.ProjectFileParser

This class provides an abstract interface to load defines, includes and engine path from a project file
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
projectFileContent string

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

ConvertDefinesToQtFormat() защищенный абстрактный Метод

Converts defines to Qt format
protected abstract ConvertDefinesToQtFormat ( string defines ) : string
defines string Defines in original format
Результат string

ConvertIncludesToQtFormat() защищенный абстрактный Метод

Converts includes to Qt format
protected abstract ConvertIncludesToQtFormat ( string includes ) : string
includes string Includes in original format
Результат string

ExtractEngineDefines() защищенный абстрактный Метод

Read engine defines from project file (can be implemented with Regex or String operations)
protected abstract ExtractEngineDefines ( ) : string
Результат string

ExtractEngineIncludes() защищенный абстрактный Метод

Read engine includes from project file (can be implemented with Regex or String operations)
protected abstract ExtractEngineIncludes ( ) : string
Результат string

GetEngineDefines() публичный Метод

Retrieve engine defines in QtCreator format
public GetEngineDefines ( ) : string
Результат string

GetEngineIncludes() публичный Метод

Retrieve engine includes in QtCreator format
public GetEngineIncludes ( ) : string
Результат string

GetEnginePath() публичный Метод

Retrieve engine path from project file
public GetEnginePath ( ) : string
Результат string

GetUnrealPathRegexPattern() защищенный абстрактный Метод

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
Результат string

IsLauncherBuild() публичный Метод

Is the engine build which is associated with this project a launcher build?
public IsLauncherBuild ( ) : bool
Результат bool

LoadProjectFile() защищенный абстрактный Метод

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
Результат string

ProjectFileParser() публичный Метод

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
Результат System.IO

Описание свойств

projectFileContent защищенное свойство

protected string projectFileContent
Результат string