16 #ifndef ACSDKASSETMANAGER_SRC_RESOURCE_H_
17 #define ACSDKASSETMANAGER_SRC_RESOURCE_H_
23 namespace acsdkAssets {
39 inline const std::string&
getId()
const {
46 inline const std::string&
getPath()
const {
47 return m_fullResourcePath;
61 return m_sizeBytes > 0;
75 static std::shared_ptr<Resource> create(
76 const std::string& parentDirectory,
77 const std::string&
id,
78 const std::string& source);
93 static std::shared_ptr<Resource> createFromStorage(
const std::string& resourceDirectory);
102 static std::shared_ptr<Resource> createFromConfigFile(
const std::string& resourceDirectory);
105 const std::string& resourceDirectory,
106 const std::string& resourceName,
107 const std::string&
id,
122 inline int incrementRefCount() {
125 inline int decrementRefCount() {
131 const std::string m_resourceDirectory;
133 const std::string m_resourceName;
135 const std::string m_id;
139 std::string m_fullResourcePath;
144 friend StorageManager;
151 #endif // ACSDKASSETMANAGER_SRC_RESOURCE_H_