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