00001
00002
00003
00004 #include "stdafx.h"
00005
00006 using namespace std;
00007
00008 #ifdef WIN32
00009 int __cdecl _tmain(int argc, _TCHAR* argv[])
00010 #else
00011 int main(int argc, char * argv[])
00012 #endif
00013 {
00014
00015 if ((argc != 3) || (argc != 4)) {
00016 cout << "Usage : CMMLRip <Annodex File> <CMML File> [<Ogg File>>]"<<endl;
00017 return 1;
00018 }
00019
00020 string locAnxFileName = argv[1];
00021 string locCMMLFileName = argv[2];
00022 string locOggFileName = "";
00023 bool locKeepOgg = false;
00024
00025 if (argc == 4) {
00026 locOggFileName = argv[3];
00027 locKeepOgg = true;
00028 }
00029
00030 fstream locAnxFile;
00031 locAnxFile.open(locAnxFileName.c_str(), ios_base::in | ios_base::binary);
00032 if (!locAnxFile.is_open()) {
00033 cout<<"Cannot open annodex file ("<<locAnxFileName<<")"<<endl;
00034 return 2;
00035 }
00036
00037 fstream locCMMLFile;
00038 locCMMLFile.open(locCMMLFileName.c_str(), ios_base::out | ios_base::binary);
00039
00040
00041 return 0;
00042 }
00043