Public Member Functions | Friends

FileInfo Class Reference

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

Detailed Description

Information about the database object.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Data Structures Functions