Provides information about the frame and field types supported by id3lib.
You normally only need (at most) one instance of the ID3_FrameInfo. It has no member data – only methods which provide information about the frame types (and their component fields) supported by id3lib as defined in field.cpp .
Usage is straightforward. The following function uses ID3_FrameInfo to display a summary of all the frames known to id3lib:
void ShowKnownFrameInfo {
{
}
}
Provides information about the frame and field types supported by id3lib.
char * LongName(ID3_FrameID frameid)
const char * Description(ID3_FrameID frameid)
char * ShortName(ID3_FrameID frameid)
ID3_FrameID
Enumeration of the different types of frames recognized by id3lib.
@ ID3FID_NOFRAME
No known frame.
Functions are also provided to glean more information about the individual fields which make up any given frame type. The following for() loop, embedded into the previous for() loop would provide a raw look at such information. Realize, of course, that the field type is meaningless when printed. Only when it is taken in the context of the ID3_FieldType enum does it take on any meaningful significance.
{
" FIELDS: " << numfields << endl;
for(int i=0;i<numfields;i++) {
cout <<
"TYPE: " << fi.FieldType(
ID3_FrameID(cur),i) <<
" FLAGS: " << fi.FieldFlags(
ID3_FrameID(cur),i) << endl;
}
cout << endl;
}
- Author
- Cedric Tefft
- Version
- Id
- field.cpp,v 1.47 2002/11/03 00:41:27 t1mpy Exp
Definition at line 96 of file field.h.