| Home | Download | Screen shots | Discussion | Documentation | Links |
|---|
Public Methods | |
| 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) |
| Set the URL. | |
| void | seturl (const char *url, const Doc2 *relative=0) |
| const char * | url () const |
| Get the URL. | |
| const char * | urlBase () const |
| Get the portion of the path likely to correspond to a file name without its extension. | |
| const char * | urlExt () const |
| Get the portion of the path likely to correspond to a file name extension. | |
| const char * | urlPath () const |
| Get the URL without the last component of the path. | |
| const char * | urlProtocol () const |
| Get the URL scheme. | |
| const char * | urlModifier () const |
| Get the fragment identifier. | |
| const char * | localName () |
| Get the fully qualified name of a local file that is the downloaded resource at d_url. | |
| const char * | localPath () |
| Get the path of the local file that is the downloaded resource at d_url. | |
| FILE * | fopen (const char *mode) |
| Open a file. | |
| void | fclose () |
| Close a file. | |
| std::ostream & | outputStream () |
| Get an output stream for writing to the resource. | |
Private Methods | |
| Doc (Doc const &) | |
| Doc & | operator= (Doc const &) |
| bool | filename (char *fn, int nfn) |
| Converts a url into a local filename. | |
Private Attributes | |
| char * | d_url |
| The URL. | |
| std::ostream * | d_ostream |
| A pointer to a std::ostream used for writing the resource. | |
| FILE * | d_fp |
| A file descriptor for reading the local copy of the resource. | |
| char * | d_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.
|
|
|
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 d_url.
|
|
|
Get the path of the local file that is the downloaded resource at d_url.
|
|
|
Get an output stream for writing to the resource.
|
|
||||||||||||
|
Set the URL.
|
|
|
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.
|