Sha256: 1a4a30d9f2ae177e987ef9359b6471be15e33494d7e2097c6f4c98a39510c6d7

Contents?: true

Size: 680 Bytes

Versions: 16

Compression:

Stored size: 680 Bytes

Contents

/**
 * @file
 * Declares utility functions for working with files in Windows
 */
#pragma once

#include <string>
#include <stdexcept>

namespace leatherman { namespace windows { namespace file_util {

    struct unknown_folder_exception : public std::runtime_error {
        explicit unknown_folder_exception(const std::string& msg) : std::runtime_error(msg) {}
    };

    /**
     * Finds the ProgramData directory in a Windows-friendly way.
     * @return The ProgramData directory, using the Windows function
     * Throws unknown_folder_exception if SHGetKnownFolderPath fails.
     */
    std::string get_programdata_dir();

}}}  // namespace leatherman::windows::file_util

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.12.1.cfacter.20181031 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.6.cfacter.20181031 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.12.1.cfacter.20181023 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.5.cfacter.20181022 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.12.0.cfacter.20181004 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.12.0.cfacter.20181001 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.12.0.cfacter.20180918 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.4.cfacter.20180821 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.3.cfacter.20180716 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.2.cfacter.20180612 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.9.6.cfacter.20180612 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.2.cfacter.20180606 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.9.6.cfacter.20180606 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
facter-3.11.0.cfacter.20180319 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp
cfacter-3.11.0.rc.20180314 ext/facter/leatherman/windows/inc/leatherman/windows/file_util.hpp