mp4atom.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef DO_NOT_DOCUMENT
00029
00030 #ifndef TAGLIB_MP4ATOM_H
00031 #define TAGLIB_MP4ATOM_H
00032
00033 #include "tfile.h"
00034 #include "tlist.h"
00035
00036 namespace TagLib {
00037
00038 namespace MP4 {
00039
00040 class Atom;
00041 typedef TagLib::List<Atom *> AtomList;
00042
00043 class Atom
00044 {
00045 public:
00046 Atom(File *file);
00047 ~Atom();
00048 Atom *find(const char *name1, const char *name2 = 0, const char *name3 = 0, const char *name4 = 0);
00049 bool path(AtomList &path, const char *name1, const char *name2 = 0, const char *name3 = 0);
00050 AtomList findall(const char *name, bool recursive = false);
00051 long offset;
00052 long length;
00053 TagLib::ByteVector name;
00054 AtomList children;
00055 private:
00056 static const int numContainers = 10;
00057 static const char *containers[10];
00058 };
00059
00061 class Atoms
00062 {
00063 public:
00064 Atoms(File *file);
00065 ~Atoms();
00066 Atom *find(const char *name1, const char *name2 = 0, const char *name3 = 0, const char *name4 = 0);
00067 AtomList path(const char *name1, const char *name2 = 0, const char *name3 = 0, const char *name4 = 0);
00068 AtomList atoms;
00069 };
00070
00071 }
00072
00073 }
00074
00075 #endif
00076
00077 #endif