Information about the database object. More...
#include FileInfo.h>
Public Member Functions | |
| string | id () const |
| This is an identifier of the file contents in the distributed database. | |
| bool | exists () const |
| False if the file information could not be obtained from the database. | |
| string | url () const |
| The URL by which the file can be retrieved. | |
| int | width () const |
| Image width, if the file is an image in a supported image format. | |
| int | height () const |
| Image height, if the file is an image in a supported image format. | |
Friends | |
| class | Img2 |
Information about the database object.
| int FileInfo::height | ( | ) | const [inline] |
Image height, if the file is an image in a supported image format.
0 if the file is not a recognised image or if the file information wasn't retrieved.
| string FileInfo::id | ( | ) | const [inline] |
This is an identifier of the file contents in the distributed database.
It can be used with Img2::getUrl to access the file contents.
| string FileInfo::url | ( | ) | const [inline] |
The URL by which the file can be retrieved.
The value returned by this method is identical to the value returned from Img2::getUrl.
| int FileInfo::width | ( | ) | const [inline] |
Image width, if the file is an image in a supported image format.
0 if the file is not a recognised image or if the file information wasn't retrieved.
1.7.1