μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Typedefs | Functions
files.hpp File Reference
#include <string>
#include <vector>
#include <boost/filesystem/path.hpp>
#include "uhal/grammars/SemicolonDelimitedUriListGrammar.hpp"
#include "uhal/grammars/HttpResponseGrammar.hpp"
#include "uhal/grammars/URIGrammar.hpp"
#include "pugixml.hpp"
#include "uhal/log/log.hpp"
#include "uhal/log/exception.hpp"
Include dependency graph for files.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uhal
 
namespace  uhal::exception
 A namespace for all exceptions to live in - this will hopefully make documentation a bit clearer.
 
namespace  uhal::utilities
 
namespace  uhal::utilities::detail
 

Typedefs

typedef std::function< void(const std::string &, const boost::filesystem::path &, std::vector< uint8_t > &aCallback)> uhal::utilities::detail::FileCallback_t
 

Functions

void uhal::utilities::ParseSemicolonDelimitedUriList (const std::string &aSemicolonDelimitedUriList, std::vector< std::pair< std::string, std::string > > &aUriList)
 Parse a semicolon delimited list of URIs into a vector of protocol/address pairs. More...
 
void uhal::utilities::ShellExpandFilenameExpr (const std::string &aFilenameExpr, const boost::filesystem::path &aParentPath, std::vector< boost::filesystem::path > &aFiles)
 Perform shell expansion of a linux shell expression ( e.g. More...
 
template<bool DebugInfo>
bool uhal::utilities::HttpGet (const std::string &aURL, HttpResponseType &aResponse)
 Retrieve a file by HTTP. More...
 
void uhal::utilities::OpenFileLocal (const std::string &aFilenameExpr, const boost::filesystem::path &aParentPath, const detail::FileCallback_t &aCallback)
 Given a linux shell expression, open all files which match it and call the callback function on each of them. More...
 
void uhal::utilities::OpenFileHttp (const std::string &aURL, const detail::FileCallback_t &aCallback)
 Given a URL, retrieve the file and call the callback function on each of them. More...
 
void uhal::utilities::OpenFile (const std::string &aProtocol, const std::string &aFilenameExpr, const boost::filesystem::path &aParentPath, const detail::FileCallback_t &aCallback)
 Given a protocol and either a URL or a linux shell expression, open the file and call the callback function on each of them. More...