Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

db.cxx

00001 #include <freedb/freedb.hxx>
00002 
00003 
00004 string Freedb::createEntry(CDInfo info)
00005 {
00006     string entry;
00007 
00008     entry  = "# xmcd\n";
00009     entry += "# \n";
00010     entry += "# Track frame offsets:\n";
00011 
00012     for (vector<int>::const_iterator i = info.trackoffsets.begin(); i != info.trackoffsets.end(); i++)
00013     {
00014         entry += "# " + itos(*i) + "\n";
00015     }
00016 
00017     entry += "#\n";
00018     //entry += "# Disc length: " + itos(info.) + " seconds\n";
00019     entry += "#\n";
00020     entry += "Revision: " + itos(info.revision) + "\n";
00021     //entry += "# Submitted via: " + + "\n";
00022 
00023     entry += "#\n";
00024 
00025     return(entry);
00026 }
00027 
00028 CDInfo Freedb::parseEntry(string entry)
00029 {
00030 }
00031 
00032 
00033 /*
00034     typedef struct
00035     {
00036         long discid;
00037         string dartist;
00038         string dtitle;
00039         string dyear;
00040         string dgenre;
00041         string dextinfo;
00042         int revision;
00043         vector<int> trackoffsets;
00044         vector<string> tracktitles;
00045         vector<int> playorder;
00046     } CDInfo;
00047 */
00048 
00049 int main()
00050 {
00051     CDInfo info;
00052 
00053 
00054 
00055     return(0);
00056 }

Generated on Wed Nov 6 17:32:02 2002 for libfreedb by doxygen1.2.18