Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::BaseJsonImporter Class Reference

Public Types

using ImportDirectivesList = AZStd::vector< JsonImportMetadata >
 
using ImportedFilesList = AZStd::unordered_set< AZ::IO::Path >
 

Public Member Functions

 AZ_RTTI (BaseJsonImporter, "{7B225807-7B43-430F-8B11-C794DCF5ACA5}")
 
virtual JsonSerializationResult::ResultCode ResolveImport (rapidjson::Value *importPtr, rapidjson::Value &patch, const rapidjson::Value &importDirective, const AZ::IO::FixedMaxPath &importedFilePath, rapidjson::Document::AllocatorType &allocator, JsonImportSettings &settings)
 
virtual JsonSerializationResult::ResultCode StoreImport (AZ::IO::PathView importedFilePath)
 
virtual JsonSerializationResult::ResultCode RestoreImport (rapidjson::Value *importPtr, rapidjson::Value &patch, rapidjson::Document::AllocatorType &allocator, AZ::IO::PathView importFilename)
 
virtual JsonSerializationResult::ResultCode ApplyPatch (rapidjson::Value &target, const rapidjson::Value &patch, rapidjson::Document::AllocatorType &allocator)
 
virtual JsonSerializationResult::ResultCode CreatePatch (rapidjson::Value &patch, const rapidjson::Value &source, const rapidjson::Value &target, rapidjson::Document::AllocatorType &allocator)
 
void AddImportDirective (const rapidjson::Pointer &jsonPtr, AZ::IO::Path importFile, AZ::IO::Path resolvedFile)
 
const ImportDirectivesListGetImportDirectives ()
 
void AddImportedFile (AZ::IO::Path importedFile)
 
const ImportedFilesListGetImportedFiles ()
 

Protected Attributes

ImportDirectivesList m_importDirectives
 
ImportedFilesList m_importedFiles
 

Member Function Documentation

◆ StoreImport()

virtual JsonSerializationResult::ResultCode AZ::BaseJsonImporter::StoreImport ( AZ::IO::PathView  importedFilePath)
virtual

Gathers the list of resolved $import file locates, but does not merge their contents into the importPtr


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