GWSOFT.co.uk  

Site by Graham Wharton 
November 21st 2008 06:20:43 PM 



NOTE : This project is not currently in development and is totally unsupported. These pages are here for information only.

getImageDate

Declaration

extern "C" status_t getImageDate(char* &date);

Description

This function is entirely optional. The function returns a status_t error code to indicate the success of the operation. Any of the status_t error codes can be used, but it is suggested that you stick to using B_NO_ERROR for success and B_ERROR for failure. The function is passed a char* which you must allocate memory for and the fill with the date of the current image.

Example Implementation - Kodak DC210 Plugin

status_t getImageDate(char* &date) { //With this camera, details of all the files can be obtained with one command //This is done only when the list of images changes, or when the camera is opened. if (haveigotfilenames == false) if (getfiledata() < B_NO_ERROR) return(B_ERROR); //The dates are stored in a STL map of image numbers to image date strings. //The required date is found. map<int, char*>::iterator pdate; pdate = imagedates.find(currentpicturenumber); date = pdate->second; return(B_NO_ERROR); }
BDCP Developers Home Page