You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.9 KiB
C++
54 lines
1.9 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/Math/Uuid.h>
|
|
#include <AzCore/Serialization/ObjectStream.h>
|
|
#include <AzCore/std/containers/vector.h>
|
|
#include <AzCore/std/string/string.h>
|
|
#include <AzCore/std/string/string_view.h>
|
|
|
|
namespace AZ
|
|
{
|
|
class SerializeContext;
|
|
|
|
namespace SerializeContextTools
|
|
{
|
|
class Application;
|
|
|
|
class Utilities final
|
|
{
|
|
public:
|
|
static AZStd::string ReadOutputTargetFromCommandLine(Application& application, const char* defaultFileOrFolder = "");
|
|
static AZStd::vector<AZStd::string> ReadFileListFromCommandLine(Application& application, AZStd::string_view switchName);
|
|
static AZStd::vector<AZStd::string> ExpandFileList(const char* root, const AZStd::vector<AZStd::string_view>& fileList);
|
|
static bool HasWildCard(AZStd::string_view string);
|
|
static void SanitizeFilePath(AZStd::string& filePath);
|
|
|
|
static bool IsSerializationPrimitive(const AZ::Uuid& classId);
|
|
|
|
static AZStd::vector<AZ::Uuid> GetSystemComponents(const Application& application);
|
|
|
|
static bool InspectSerializedFile(
|
|
const char* filePath,
|
|
SerializeContext* sc,
|
|
const ObjectStream::ClassReadyCB& classCallback,
|
|
Data::AssetFilterCB assetFilterCallback = AZ::Data::AssetFilterNoAssetLoading);
|
|
|
|
private:
|
|
Utilities() = delete;
|
|
~Utilities() = delete;
|
|
Utilities(const Utilities&) = delete;
|
|
Utilities(Utilities&&) = delete;
|
|
Utilities& operator=(const Utilities&) = delete;
|
|
Utilities& operator=(Utilities&&) = delete;
|
|
};
|
|
} // namespace SerializeContextTools
|
|
} // namespace AZ
|