Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

URLSpec Class Reference

#include <urlSpec.h>

List of all members.

Private Types

enum  Flags {
  F_has_scheme = 0x0001, F_has_authority = 0x0002, F_has_username = 0x0004, F_has_server = 0x0008,
  F_has_port = 0x0010, F_has_path = 0x0020, F_has_query = 0x0040
}

Private Member Functions

INLINE URLSpec (const string &url, bool server_name_expected=false)
INLINE URLSpec (const URLSpec &copy)
INLINE void operator= (const string &url)
void operator= (const URLSpec &copy)
INLINE bool operator== (const URLSpec &other) const
INLINE bool operator!= (const URLSpec &other) const
INLINE bool operator< (const URLSpec &other) const
INLINE int compare_to (const URLSpec &other) const
INLINE bool has_scheme () const
INLINE bool has_authority () const
INLINE bool has_username () const
INLINE bool has_server () const
INLINE bool has_port () const
INLINE bool has_path () const
INLINE bool has_query () const
string get_scheme () const
INLINE string get_authority () const
INLINE string get_username () const
INLINE string get_server () const
INLINE string get_port_str () const
int get_port () const
string get_server_and_port () const
string get_path () const
INLINE string get_query () const
INLINE const string & get_url () const
void set_scheme (const string &scheme)
void set_authority (const string &authority)
void set_username (const string &username)
void set_server (const string &server)
void set_port (const string &port)
void set_port (int port)
void set_server_and_port (const string &server_and_port)
void set_path (const string &path)
void set_query (const string &query)
void set_url (const string &url, bool server_name_expected=false)
INLINE operator const string & () const
INLINE const char * c_str () const
INLINE bool empty () const
INLINE size_t length () const
INLINE char operator[] (int n) const
bool input (istream &in)
void output (ostream &out) const
void parse_authority ()

Static Private Member Functions

string quote (const string &source, const string &safe="/")
string quote_plus (const string &source, const string &safe="/")
string unquote (const string &source)
string unquote_plus (const string &source)

Private Attributes

PUBLISHED __pad0__: URLSpec()
string _url
int _port
int _flags
size_t _scheme_end
size_t _username_start
size_t _username_end
size_t _server_start
size_t _server_end
size_t _port_start
size_t _port_end
size_t _path_start
size_t _path_end
size_t _query_start


Member Enumeration Documentation

enum URLSpec::Flags [private]
 

Enumeration values:
F_has_scheme 
F_has_authority 
F_has_username 
F_has_server 
F_has_port 
F_has_path 
F_has_query 

Definition at line 95 of file urlSpec.h.


Constructor & Destructor Documentation

INLINE URLSpec::URLSpec const string &  url,
bool  server_name_expected = false
[private]
 

INLINE URLSpec::URLSpec const URLSpec &  copy  )  [private]
 


Member Function Documentation

INLINE const char* URLSpec::c_str  )  const [private]
 

INLINE int URLSpec::compare_to const URLSpec &  other  )  const [private]
 

Referenced by DocumentSpec::compare_to().

INLINE bool URLSpec::empty  )  const [private]
 

INLINE string URLSpec::get_authority  )  const [private]
 

string URLSpec::get_path  )  const [private]
 

Definition at line 126 of file urlSpec.cxx.

References _path_end, _path_start, _url, and has_path().

int URLSpec::get_port  )  const [private]
 

Definition at line 88 of file urlSpec.cxx.

References _port, get_scheme(), and has_port().

Referenced by get_server_and_port().

INLINE string URLSpec::get_port_str  )  const [private]
 

Referenced by set_server(), and set_username().

INLINE string URLSpec::get_query  )  const [private]
 

string URLSpec::get_scheme  )  const [private]
 

Definition at line 74 of file urlSpec.cxx.

References _scheme_end, _url, and has_scheme().

Referenced by get_port().

INLINE string URLSpec::get_server  )  const [private]
 

Referenced by get_server_and_port(), set_port(), and set_username().

string URLSpec::get_server_and_port  )  const [private]
 

Definition at line 110 of file urlSpec.cxx.

References _port_end, _server_start, _url, get_port(), get_server(), and has_port().

INLINE const string& URLSpec::get_url  )  const [private]
 

Referenced by output().

INLINE string URLSpec::get_username  )  const [private]
 

Referenced by set_port(), set_server(), and set_server_and_port().

INLINE bool URLSpec::has_authority  )  const [private]
 

Referenced by parse_authority(), set_authority(), set_port(), set_server(), set_server_and_port(), set_url(), and set_username().

INLINE bool URLSpec::has_path  )  const [private]
 

Referenced by get_path(), set_authority(), and set_path().

INLINE bool URLSpec::has_port  )  const [private]
 

Referenced by get_port(), get_server_and_port(), set_server(), and set_username().

INLINE bool URLSpec::has_query  )  const [private]
 

Referenced by set_query().

INLINE bool URLSpec::has_scheme  )  const [private]
 

Referenced by get_scheme(), set_scheme(), and set_url().

INLINE bool URLSpec::has_server  )  const [private]
 

INLINE bool URLSpec::has_username  )  const [private]
 

Referenced by set_port(), set_server(), and set_server_and_port().

bool URLSpec::input istream &  in  )  [private]
 

Definition at line 567 of file urlSpec.cxx.

References set_url(), and url.

INLINE size_t URLSpec::length  )  const [private]
 

INLINE URLSpec::operator const string &  )  const [private]
 

INLINE bool URLSpec::operator!= const URLSpec &  other  )  const [private]
 

INLINE bool URLSpec::operator< const URLSpec &  other  )  const [private]
 

void URLSpec::operator= const URLSpec &  copy  )  [private]
 

Definition at line 51 of file urlSpec.cxx.

References _flags, _path_end, _path_start, _port, _port_end, _port_start, _query_start, _scheme_end, _server_end, _server_start, _url, _username_end, and _username_start.

INLINE void URLSpec::operator= const string &  url  )  [private]
 

INLINE bool URLSpec::operator== const URLSpec &  other  )  const [private]
 

INLINE char URLSpec::operator[] int  n  )  const [private]
 

void URLSpec::output ostream &  out  )  const [private]
 

Definition at line 583 of file urlSpec.cxx.

References get_url().

void URLSpec::parse_authority  )  [private]
 

Definition at line 768 of file urlSpec.cxx.

References _flags, _path_end, _path_start, _port, _port_end, _port_start, _query_start, _server_end, _server_start, _url, _username_end, _username_start, F_has_port, F_has_server, F_has_username, and has_authority().

Referenced by set_authority(), and set_url().

string URLSpec::quote const string &  source,
const string &  safe = "/"
[static, private]
 

Definition at line 599 of file urlSpec.cxx.

string URLSpec::quote_plus const string &  source,
const string &  safe = "/"
[static, private]
 

Definition at line 640 of file urlSpec.cxx.

void URLSpec::set_authority const string &  authority  )  [private]
 

Definition at line 210 of file urlSpec.cxx.

References _flags, _path_end, _path_start, _port_end, _port_start, _query_start, _server_end, _server_start, _url, _username_end, _username_start, F_has_authority, F_has_port, F_has_server, F_has_username, has_authority(), has_path(), and parse_authority().

Referenced by set_port(), set_server(), set_server_and_port(), and set_username().

void URLSpec::set_path const string &  path  )  [private]
 

Definition at line 372 of file urlSpec.cxx.

References _flags, _path_end, _path_start, _query_start, _url, F_has_path, and has_path().

void URLSpec::set_port int  port  )  [private]
 

Definition at line 338 of file urlSpec.cxx.

References set_port().

void URLSpec::set_port const string &  port  )  [private]
 

Definition at line 312 of file urlSpec.cxx.

References get_server(), get_username(), has_authority(), has_username(), and set_authority().

Referenced by set_port().

void URLSpec::set_query const string &  query  )  [private]
 

Definition at line 418 of file urlSpec.cxx.

References _flags, _query_start, _url, F_has_query, and has_query().

void URLSpec::set_scheme const string &  scheme  )  [private]
 

Definition at line 139 of file urlSpec.cxx.

References _flags, _path_end, _path_start, _port_end, _port_start, _query_start, _scheme_end, _server_end, _server_start, _url, _username_end, _username_start, F_has_scheme, and has_scheme().

void URLSpec::set_server const string &  server  )  [private]
 

Definition at line 288 of file urlSpec.cxx.

References get_port_str(), get_username(), has_authority(), has_port(), has_username(), and set_authority().

void URLSpec::set_server_and_port const string &  server_and_port  )  [private]
 

Definition at line 353 of file urlSpec.cxx.

References get_username(), has_authority(), has_username(), and set_authority().

void URLSpec::set_url const string &  url,
bool  server_name_expected = false
[private]
 

Definition at line 449 of file urlSpec.cxx.

References _flags, _path_end, _path_start, _port, _port_end, _port_start, _query_start, _scheme_end, _server_end, _server_start, _url, _username_end, _username_start, F_has_authority, F_has_path, F_has_query, F_has_scheme, has_authority(), has_scheme(), p, parse_authority(), start, and url.

Referenced by input().

void URLSpec::set_username const string &  username  )  [private]
 

Definition at line 264 of file urlSpec.cxx.

References get_port_str(), get_server(), has_authority(), has_port(), and set_authority().

string URLSpec::unquote const string &  source  )  [static, private]
 

Definition at line 686 of file urlSpec.cxx.

References p.

string URLSpec::unquote_plus const string &  source  )  [static, private]
 

Definition at line 724 of file urlSpec.cxx.

References p.


Member Data Documentation

PUBLISHED URLSpec::__pad0__ [private]
 

Definition at line 35 of file urlSpec.h.

int URLSpec::_flags [private]
 

Definition at line 107 of file urlSpec.h.

Referenced by operator=(), parse_authority(), set_authority(), set_path(), set_query(), set_scheme(), and set_url().

size_t URLSpec::_path_end [private]
 

Definition at line 117 of file urlSpec.h.

Referenced by get_path(), operator=(), parse_authority(), set_authority(), set_path(), set_scheme(), and set_url().

size_t URLSpec::_path_start [private]
 

Definition at line 116 of file urlSpec.h.

Referenced by get_path(), operator=(), parse_authority(), set_authority(), set_path(), set_scheme(), and set_url().

int URLSpec::_port [private]
 

Definition at line 106 of file urlSpec.h.

Referenced by get_port(), operator=(), parse_authority(), and set_url().

size_t URLSpec::_port_end [private]
 

Definition at line 115 of file urlSpec.h.

Referenced by get_server_and_port(), operator=(), parse_authority(), set_authority(), set_scheme(), and set_url().

size_t URLSpec::_port_start [private]
 

Definition at line 114 of file urlSpec.h.

Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url().

size_t URLSpec::_query_start [private]
 

Definition at line 118 of file urlSpec.h.

Referenced by operator=(), parse_authority(), set_authority(), set_path(), set_query(), set_scheme(), and set_url().

size_t URLSpec::_scheme_end [private]
 

Definition at line 109 of file urlSpec.h.

Referenced by get_scheme(), operator=(), set_scheme(), and set_url().

size_t URLSpec::_server_end [private]
 

Definition at line 113 of file urlSpec.h.

Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url().

size_t URLSpec::_server_start [private]
 

Definition at line 112 of file urlSpec.h.

Referenced by get_server_and_port(), operator=(), parse_authority(), set_authority(), set_scheme(), and set_url().

string URLSpec::_url [private]
 

Definition at line 105 of file urlSpec.h.

Referenced by get_path(), get_scheme(), get_server_and_port(), operator=(), parse_authority(), set_authority(), set_path(), set_query(), set_scheme(), and set_url().

size_t URLSpec::_username_end [private]
 

Definition at line 111 of file urlSpec.h.

Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url().

size_t URLSpec::_username_start [private]
 

Definition at line 110 of file urlSpec.h.

Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:59 2003 for Panda by doxygen1.3