--- libgig/trunk/src/gigdump.cpp 2006/08/10 21:27:50 916 +++ libgig/trunk/src/gigdump.cpp 2006/10/24 22:24:45 929 @@ -36,6 +36,7 @@ string Revision(); void PrintVersion(); void PrintFileInformations(gig::File* gig); +void PrintGroups(gig::File* gig); void PrintSamples(gig::File* gig); void PrintInstruments(gig::File* gig); void PrintRegions(gig::Instrument* instr); @@ -66,6 +67,8 @@ gig::File* gig = new gig::File(riff); PrintFileInformations(gig); cout << endl; + PrintGroups(gig); + cout << endl; PrintSamples(gig); cout << endl; PrintInstruments(gig); @@ -129,6 +132,19 @@ } } +void PrintGroups(gig::File* gig) { + int groups = 0; + cout << "ALL defined Groups:" << endl; + for (gig::Group* pGroup = gig->GetFirstGroup(); pGroup; pGroup = gig->GetNextGroup()) { + groups++; + string name = pGroup->Name; + if (name == "") name = ""; + else name = '\"' + name + '\"'; + cout << " Group " << groups << ")" << endl; + cout << " Name: " << name << endl; + } +} + void PrintSamples(gig::File* gig) { int samples = 0; cout << "ALL Available Samples (as there might be more than referenced by Instruments):" << endl; @@ -369,7 +385,7 @@ } string Revision() { - string s = "$Revision: 1.19 $"; + string s = "$Revision: 1.20 $"; return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword }