ToyResourceUtilities.h 1.18 KB
//
//  ToyResourceUtilities.h
//  SteveMaggieCpp
//
//  Created by Katarzyna Kalinowska-Górska on 23.06.2017.
//
//

#ifndef ToyResourceUtilities_h
#define ToyResourceUtilities_h

#include "json/document.h"
#include <string>

class ToyResourceUtilities
{
    public:
    
        static ToyResourceUtilities& getInstance()
        {
            static ToyResourceUtilities instance;
            return instance;
        }
    
        void setDeviceSpecificFolderName(std::string folderName){ DeviceSpecificFolderName = folderName; }
        std::string getDeviceSpecificFolderName(){return DeviceSpecificFolderName;}
    
        std::string getDownloadedResourcesPath(bool deviceDependentFiles = true);
        std::string getFullPathForDownloadedFile(const std::string& path, bool isDeviceDependent = true);
        std::vector<const std::string> getFullPathsForDownloadedFiles(const std::vector<const std::string>& paths, bool areDeviceDependent = true);
        std::vector<std::string> getFullPathsForDownloadedFiles(const std::vector<std::string>& paths, bool areDeviceDependent = true);
    
    protected:
    
        std::string DeviceSpecificFolderName;
};

#endif /* ToyResourceUtilities_h */