ID3_FrameInfo Class Reference
Provides information about the frame and field types supported by id3lib.
More...
#include <id3/field.h>
List of all members.
Detailed Description
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:
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.
for (int cur = ID3FID_NOFRAME+1; cur <= fi.MaxFrameID(); cur ++)
{
int numfields = fi.NumFields(ID3_FrameID(cur));
cout << "ID: " << fi.LongName(ID3_FrameID(cur)) <<
" FIELDS: " << numfields << endl;
for(int i=0;i<numfields;i++) {
cout << "TYPE: " << fi.FieldType(ID3_FrameID(cur),i) <<
" SIZE: " << fi.FieldSize(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.
Constructor & Destructor Documentation
ID3_FrameInfo::ID3_FrameInfo |
( |
|
) |
[inline] |
ID3_FrameInfo::~ID3_FrameInfo |
( |
|
) |
[inline] |
Member Function Documentation
const char * ID3_FrameInfo::Description |
( |
ID3_FrameID |
frameid |
) |
|
size_t ID3_FrameInfo::FieldSize |
( |
ID3_FrameID |
frameid, |
|
|
int |
fieldnum | |
|
) |
| | |
int ID3_FrameInfo::MaxFrameID |
( |
|
) |
|
char * ID3_FrameInfo::ShortName |
( |
ID3_FrameID |
frameid |
) |
|
The documentation for this class was generated from the following files: