Home | Download | Screen shots | Discussion | Documentation |
---|
Public Member Functions | |
doc (const std::string &url=std::string(), const doc *relative=0) | |
Constructor. | |
doc (const std::string &url, const doc2 *relative) | |
Constructor. | |
~doc () | |
Destructor. | |
void | seturl (const char *url, const doc *relative=0) |
void | seturl (const char *url, const doc2 *relative=0) |
const char * | url () const |
Get the URL. | |
const char * | url_base () const |
Get the portion of the path likely to correspond to a file name without its extension. | |
const char * | url_ext () const |
Get the portion of the path likely to correspond to a file name extension. | |
const char * | url_path () const |
Get the URL without the last component of the path. | |
const char * | url_protocol () const |
Get the URL scheme. | |
const char * | url_modifier () const |
Get the fragment identifier. | |
const char * | local_name () |
Get the fully qualified name of a local file that is the downloaded resource at url_. | |
const char * | local_path () |
Get the path of the local file that is the downloaded resource at url_. | |
FILE * | fopen (const char *mode) |
Open a file. | |
void | fclose () |
Close a file. | |
std::ostream & | output_stream () |
Get an output stream for writing to the resource. | |
Private Member Functions | |
doc (doc const &) | |
Not implemented. | |
doc & | operator= (doc const &) |
Not implemented. | |
bool | filename (char *fn, int nfn) |
Converts a url into a local filename. | |
Private Attributes | |
char * | url_ |
The URL. | |
std::ostream * | out_ |
A pointer to a std::ostream used for writing the resource. | |
FILE * | fp_ |
A file descriptor for reading the local copy of the resource. | |
char * | tmpfile_ |
Name of the temporary file created for the local copy of the resource. |
This is just a shell until a real http protocol library is found...
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Not implemented.
For internal use only. doc is not copyable. |
|
Close a file. Closes the file opened with doc::fopen. |
|
Converts a url into a local filename.
|
|
Open a file.
|
|
Get the fully qualified name of a local file that is the downloaded resource at url_.
|
|
Get the path of the local file that is the downloaded resource at url_.
|
|
Not implemented.
For internal use only. doc is not copyable. |
|
Get an output stream for writing to the resource.
|
|
Get the URL.
|
|
Get the portion of the path likely to correspond to a file name without its extension.
|
|
Get the portion of the path likely to correspond to a file name extension.
|
|
Get the fragment identifier.
|
|
Get the URL without the last component of the path. In spite of its name, this method does not return the URL's path.
|
|
Get the URL scheme.
|
|
A file descriptor for reading the local copy of the resource.
|
|
A pointer to a std::ostream used for writing the resource.
|
|
Name of the temporary file created for the local copy of the resource.
|
|
The URL.
|