μHAL (v2.7.9)
Part of the IPbus software repository
Namespaces | Functions
files.hpp File Reference
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <wordexp.h>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/asio/error.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ip/udp.hpp>
#include <boost/asio/streambuf.hpp>
#include <boost/asio/read.hpp>
#include <boost/asio/write.hpp>
#include <boost/spirit/home/qi/parse.hpp>
#include <boost/spirit/include/qi_char_.hpp>
#include <boost/bind/bind.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 "boost/unordered_map.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

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

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...
 
template<typename R , typename F , typename L >
void uhal::utilities::OpenFileLocal (const std::string &aFilenameExpr, const boost::filesystem::path &aParentPath, boost::_bi::bind_t< R, F, L > aBinder)
 Given a linux shell expression, open all files which match it and call the callback function on each of them. More...
 
template<typename R , typename F , typename L >
void uhal::utilities::OpenFileHttp (const std::string &aURL, boost::_bi::bind_t< R, F, L > aBinder)
 Given a URL, retrieve the file and call the callback function on each of them. More...
 
template<typename R , typename F , typename L >
void uhal::utilities::OpenFile (const std::string &aProtocol, const std::string &aFilenameExpr, const boost::filesystem::path &aParentPath, boost::_bi::bind_t< R, F, L > aBinder)
 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...