#include <AbstractFrame.h>
template<typename ModelType_t, typename FrameType_t>
class ID3v2Frame::AbstractFrame< ModelType_t, FrameType_t >
The AbstractFrame class
for example AbstractFrame<Discnumber, TagLib::ID3v2::TextIdentificationFrame>
|
| AbstractFrame (TagLib::FileRef *file_ref, const char *four) |
|
virtual bool | read (ModelType_t &data) |
| sets the _data_model by reading from the frame More...
|
|
virtual bool | write (const ModelType_t &data_model) |
| insert the _data_model into the frame More...
|
|
bool | is_frame_found () const |
| if the frame was found when called read() More...
|
|
|
virtual TagLib::ID3v2::Frame * | create_id3v2_frame ()=0 |
| create_id3v2_frame creates new id3v2 frame if there's no frame we have to create it manually every subclass has to implement this function More...
|
|
virtual void | map_model_to_frame ()=0 |
| map_model_to_frame
maps the model to the frame and vice versa so the frame knows how to get/set data
|
|
virtual void | map_frame_to_model ()=0 |
|
|
const char * | _four =nullptr |
|
TagLib::ID3v2::Tag * | _tag =nullptr |
|
ModelType_t | _data_model |
|
FrameType_t * | _frame =nullptr |
|
template<typename ModelType_t, typename FrameType_t>
template<typename ModelType_t, typename FrameType_t>
if the frame was found when called read()
- Returns
- true, if the frame was found
template<typename ModelType_t, typename FrameType_t>
sets the _data_model by reading from the frame
- Parameters
-
data | reference to data filled with _data_model |
- Returns
- false, if frame cannot be accessed, true else
template<typename ModelType_t, typename FrameType_t>
insert the _data_model into the frame
- Parameters
-
- Returns
- false if frame cannot be accessed