// Checking if file is available for writing.
if (xmlFile != NULL)
{
// Trying to get file_info object.
fprintf(xmlFile,"Trying To Get file_info object ..");
file_info* trackInfo;
track->handle_query(trackInfo);
fprintf(xmlFile,"Got file_info object .");
// Checking if such an object exists.
if (trackInfo != NULL)
{
// Iterating over meta data in this file.
for (int index = 0; index < trackInfo->meta_get_count(); index++)
{
fprintf(xmlFile,"%s :: %s",
trackInfo->meta_enum_name(index),
trackInfo->meta_enum_value(index));
}
}
}
Here's what im trying to do now. Im have some crashs (obviously, due to the fact trackInfo is null.. but how can i instanciate it if file_info is an abstract interface ?) and would appriciate any tips, though im still debugging it at the moment. The general loading and event catching works just fine.
EDIT: i surprise myself, sometimes >.<
Cant believe i missed the file_info_i class that implements that interface. Works fine now.