![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SourceProjectWriter.h>
Public Types | |
| enum class | EWriteFlags { All , UserSources } |
Public Member Functions | |
| CSourceProjectWriter (const TSRef< IFileSystem > &FileSystem, const TSRef< CDiagnostics > &Diagnostics) | |
| VERSECOMPILER_API bool | WriteProject (const CSourceProject &Project, const CUTF8String &DestinationDir, CUTF8String *ResultProjectFilePath=nullptr, const EWriteFlags WriteFlags=EWriteFlags::All) const |
| VERSECOMPILER_API bool | WriteProjectFile (const SProjectDesc &ProjectDesc, const CUTF8String &ProjectFilePath) const |
| VERSECOMPILER_API bool | WriteVSCodeWorkspaceFile (const SWorkspaceDesc &WorkspaceDesc, const CUTF8String &WorkspaceFilePath) const |
Static Public Member Functions | |
| static VERSECOMPILER_API SProjectDesc | GetProjectDesc (const CSourceProject &Project) |
| static VERSECOMPILER_API SWorkspaceDesc | GetWorkspaceDesc (const CSourceProject &Project, const CUTF8String &ProjectFilePath) |
Helper class to write a source project to disk This can either be a copy from one location to another, or save an in-memory project to the file system
|
strong |
|
inline |
|
static |
Derive a project desc from a source project
|
static |
Derive a workspace desc from a source project
| bool uLang::CSourceProjectWriter::WriteProject | ( | const CSourceProject & | Project, |
| const CUTF8String & | DestinationDir, | ||
| CUTF8String * | ResultProjectFilePath = nullptr, |
||
| const EWriteFlags | WriteFlags = EWriteFlags::All |
||
| ) | const |
Write the entire given source project to disk If ResultProjectFilePath is given, a vproject file will be generated and the path to it returned
| bool uLang::CSourceProjectWriter::WriteProjectFile | ( | const SProjectDesc & | ProjectDesc, |
| const CUTF8String & | ProjectFilePath | ||
| ) | const |
Write only a vproject file to the given file path
| bool uLang::CSourceProjectWriter::WriteVSCodeWorkspaceFile | ( | const SWorkspaceDesc & | WorkspaceDesc, |
| const CUTF8String & | WorkspaceFilePath | ||
| ) | const |
Write a .code-workspace file to the given file path