Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

xml_stream_attribute Class Reference

xml stream attribute processing More...

#include <miscxml.h>

List of all members.

Public Member Functions

 xml_stream_attribute ()
 default constructor
 xml_stream_attribute (const char *url, bool full)
 constructor
bool crack_xml_request (const char *url, bool full)
 breaks url into parts
bool complete_to_full (const xml_stream_attribute &full_url)
 construct url
bool combine_url (string_t &url) const
 combines the full url from internal parts
void prepare_socket_request (string_t &url) const
 prepares socket request
void prepare_http_request (const char *agent, string_t &url) const
 prepares http request
bool complete_to_full (const char *location, const char *full_path, string_t &res)
 completes url

Public Attributes

xml_stream_protocol _protocol
 protocol
string_t _host
 host
ub2_t _port
 port
string_t _user
 user name
string_t _password
 password
string_t _path
 path
string_t _file
 file name
string_t _extra
 http parameters
bool _query
 query flag

Private Member Functions

void clear ()
 clears internal parts


Detailed Description

xml stream attribute processing

Definition at line 51 of file miscxml.h.


Constructor & Destructor Documentation

xml_stream_attribute::xml_stream_attribute (  ) 

default constructor

Definition at line 114 of file miscxml.cpp.

xml_stream_attribute::xml_stream_attribute ( const char *  url,
bool  full 
)

constructor

Parameters:
url  url
full  full url flag

Definition at line 119 of file miscxml.cpp.

References clear(), and crack_xml_request().


Member Function Documentation

bool xml_stream_attribute::complete_to_full ( const xml_stream_attribute full_url  ) 

construct url

Parameters:
full_url  input full url

Definition at line 141 of file miscxml.cpp.

References _host, _password, _path, _port, _protocol, _user, and STREAM_RELATIVE.

Referenced by complete_to_full(), buffer_loader::load(), and xml_processor::parseDTD().

bool xml_stream_attribute::combine_url ( string_t url  )  const

void xml_stream_attribute::prepare_socket_request ( string_t url  )  const

prepares socket request

Parameters:
url  [out] socket request

Definition at line 217 of file miscxml.cpp.

References _extra, _file, _host, _path, _port, _query, base_string< T >::length(), str_Colon, str_Pound, str_Question, and str_template::strprint().

Referenced by stream_input_common::open().

void xml_stream_attribute::prepare_http_request ( const char *  agent,
string_t url 
) const

prepares http request

Parameters:
agent  http agent name
url  [out] http request

Definition at line 251 of file miscxml.cpp.

References _extra, _file, _host, _path, _port, _query, base_string< T >::length(), str_Colon, str_Pound, str_Question, and str_template::strprint().

bool xml_stream_attribute::complete_to_full ( const char *  location,
const char *  full_path,
string_t res 
)

completes url

Parameters:
location  location
full_path  full path
res  [out] full url

Definition at line 499 of file miscxml.cpp.

References _protocol, combine_url(), complete_to_full(), STREAM_RELATIVE, and STREAM_UNKNOWN.

void xml_stream_attribute::clear (  )  [private]

clears internal parts

Definition at line 127 of file miscxml.cpp.

References _extra, _file, _host, _password, _path, _port, _protocol, _query, _user, and STREAM_UNKNOWN.

Referenced by xml_stream_attribute().


Member Data Documentation

user name

Definition at line 96 of file miscxml.h.

Referenced by clear(), combine_url(), complete_to_full(), and crack_xml_request().


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.