View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

url.h
Go to the documentation of this file.
1#ifndef VISTLE_UTIL_URL_H
2#define VISTLE_UTIL_URL_H
3
4#include "export.h"
5#include <string>
6#include <map>
7
8namespace vistle {
9
11public:
12 Url(const std::string &url);
13 static Url fromFileOrUrl(const std::string &furl);
14 static std::string decode(const std::string &str, bool path = false);
15
16 std::string str() const;
17 operator std::string() const;
18
19 std::string extension() const;
20 bool valid() const;
21 bool isLocal() const;
22
23 const std::string &scheme() const;
24 const std::string &authority() const;
25 const std::string &userinfo() const;
26 const std::string &host() const;
27 const std::string &port() const;
28 const std::string &path() const;
29 const std::map<std::string, std::string> &query() const;
30 std::pair<std::string, bool> query(const std::string &key) const;
31 const std::string &fragment() const;
32
33private:
34 bool m_valid = false;
35
36 std::string m_scheme;
37 std::string m_authority;
38 bool m_haveAuthority = false;
39 std::string m_userinfo;
40 std::string m_host;
41 std::string m_port;
42 std::string m_path;
43 std::map<std::string, std::string> m_query;
44 std::string m_fragment;
45
46 Url();
47};
48
49} // namespace vistle
50#endif
Definition: url.h:10
Definition: allobjects.cpp:30
#define V_UTILEXPORT
Definition: export.h:19