RunicVTT Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
AssetIO.h File Reference
#include <Windows.h>
#include <ShObjIdl.h>
#include <Urlmon.h>
#include <filesystem>
#include <string>
#include <optional>
#include <vector>
#include <fstream>
#include <cctype>
#include <algorithm>
#include <system_error>
#include "PathManager.h"
#include "imgui.h"
#include "ImGuiToaster.h"
Include dependency graph for AssetIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AssetIO::ComInit
 

Namespaces

namespace  AssetIO
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define NOMINMAX
 

Enumerations

enum class  AssetIO::AssetKind { AssetIO::Marker , AssetIO::Map }
 

Functions

const std::filesystem::path & AssetIO::assetsDir (AssetKind kind)
 
std::string AssetIO::slugify (const std::string &s)
 
std::filesystem::path AssetIO::uniqueName (const std::filesystem::path &destDir, const std::string &baseFile)
 
std::optional< std::filesystem::path > AssetIO::pickImageFileWin32 ()
 
bool AssetIO::importFromPath (AssetKind kind, const std::filesystem::path &srcPath, std::filesystem::path *outDst=nullptr, std::string *outError=nullptr)
 
bool AssetIO::importFromPicker (AssetKind kind, std::filesystem::path *outDst=nullptr, std::string *outError=nullptr)
 
std::vector< std::filesystem::path > AssetIO::pickImageFilesWin32 ()
 
bool AssetIO::importManyFromPicker (AssetKind kind, std::vector< std::filesystem::path > *outDsts=nullptr, std::string *outError=nullptr)
 
bool AssetIO::importFromUrl (AssetKind kind, const std::wstring &urlW, std::filesystem::path *outDst=nullptr, std::string *outError=nullptr)
 
std::vector< std::filesystem::path > AssetIO::listAssets (AssetKind kind)
 
bool AssetIO::deleteAsset (AssetKind kind, const std::filesystem::path &file, std::string *outError=nullptr)
 
void AssetIO::openDeleteAssetPopUp (std::weak_ptr< ImGuiToaster > toaster_)
 
void AssetIO::openUrlAssetPopUp (std::weak_ptr< ImGuiToaster > toaster_)
 

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

Definition at line 4 of file AssetIO.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 3 of file AssetIO.h.