Go to the documentation of
this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #pragma once
00017
00018 #include "iFnPub.h"
00019 #include "maxtypes.h"
00020 #include "Path.h"
00021 #include "AssetManagement\AssetType.h"
00022 #include "AssetManagement\assetmanagementExport.h"
00023 #include "Noncopyable.h"
00024 #include "windows.h"
00025 #include "AssetManagement\AssetUser.h"
00026
00027 #define FILERESOLUTIONMGR_INTERFACE Interface_ID(0x675b2cab, 0x19fe1fad)
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 class IFileResolutionManager : public FPStaticInterface, public MaxSDK::Util::Noncopyable
00058 {
00059 public:
00060
00062 AssetMgmntExport static IFileResolutionManager* GetInstance();
00063
00083 virtual MSTR GetFullFilePath(const MCHAR* filePath,MaxSDK::AssetManagement::AssetType assetType, bool byPassCache = false) = 0;
00084
00106 virtual bool GetFullFilePath(MaxSDK::Util::Path& filePath, MaxSDK::AssetManagement::AssetType assetType, bool byPassCache = false) = 0;
00107
00121 virtual bool GetFullFilePath(const MaxSDK::AssetManagement::AssetUser& assetUser, MaxSDK::Util::Path& filePath,
00122 bool byPassCache = false) = 0;
00123
00137 virtual bool GetFullFilePath(const MaxSDK::AssetManagement::AssetUser& assetUser, MSTR& filePath,
00138 bool byPassCache = false) = 0;
00139
00153 virtual bool GetFullFilePath(const MaxSDK::AssetManagement::AssetId& assetID, MaxSDK::Util::Path& filePath,
00154 bool byPassCache = false) = 0;
00155
00169 virtual bool GetFullFilePath(const MaxSDK::AssetManagement::AssetId& assetID, MSTR& filePath, bool byPassCache = false) = 0;
00170
00182 virtual MSTR GetFullFilePath(const MaxSDK::AssetManagement::AssetUser& assetUser, bool byPassCache = false) = 0;
00183
00195 virtual MSTR GetFullFilePath(const MaxSDK::AssetManagement::AssetId& assetId, bool byPassCache = false) = 0;
00196
00201 virtual DWORD GetMaximumCacheDuration() = 0;
00202
00207 virtual void SetMaximumCacheDuration(DWORD newMaxDuration) = 0;
00208
00212 virtual bool IsCachingEnabled() = 0;
00213
00215 virtual void EnableCaching() = 0;
00216
00218 virtual void DisableCaching() = 0;
00219
00225 virtual void PushAllowCachingOfUnresolvedResults(bool newVal) = 0;
00226
00228 virtual void PopAllowCachingOfUnresolvedResults() = 0;
00229
00238 virtual void DoGetUniversalFileName(MaxSDK::Util::Path& aFullFilePath) const = 0;
00239
00248 virtual void DoGetUniversalFileName(MSTR& fullFilePath) const = 0;
00249
00250
00251
00252
00253
00254
00255 virtual void UpdateDotIniFile() = 0;
00256
00259 virtual int GetNumAssetTypes()const = 0;
00260
00268 virtual MaxSDK::AssetManagement::AssetType GetAssetType(const MSTR& assetType)const = 0;
00269
00275 virtual const MCHAR* GetAssetTypeString(MaxSDK::AssetManagement::AssetType assetType)const = 0;
00276
00277
00278 protected:
00279
00280 virtual ~IFileResolutionManager(){}
00281
00282 };
00283