AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acsdkAssets::manager::Resource Class Reference

#include <Resource.h>

Public Member Functions

const std::string & getId () const
 
const std::string & getPath () const
 
size_t getSizeBytes () const
 
bool exists () const
 

Detailed Description

This class will represent a resource as it is stored on the system. It will maintain an internal reference counter which represents how many requests are referencing it.

This class will only be created and managed by StorageManager to ensure that it does not get leaked or mishandled.

Member Function Documentation

◆ exists()

bool alexaClientSDK::acsdkAssets::manager::Resource::exists ( ) const
inline
Returns
weather the resource exists on the system or not using its size.

◆ getId()

const std::string& alexaClientSDK::acsdkAssets::manager::Resource::getId ( ) const
inline
Returns
the id of this resource, most commonly the sha2 checksum.

◆ getPath()

const std::string& alexaClientSDK::acsdkAssets::manager::Resource::getPath ( ) const
inline
Returns
the full path of the resource itself, containing its content. ie /path/to/resource/file.txt

◆ getSizeBytes()

size_t alexaClientSDK::acsdkAssets::manager::Resource::getSizeBytes ( ) const
inline
Returns
the size of the resource in bytes, if the resource has been deleted, then the size will be 0.

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

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0