/[msmoney_db_parser]/trunk/libmsmoneyfile/MSMoneyFile.cs
ViewVC logotype

Diff of /trunk/libmsmoneyfile/MSMoneyFile.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libmsmoneyfile/MSMoneyFile.cs	2015/09/19 19:00:45	14
+++ trunk/libmsmoneyfile/MSMoneyFile.cs	2016/09/19 05:09:46	15
@@ -76,6 +76,18 @@
 //			default:
 //				throw new InvalidOperationException (string.Format("unknown msmoney file: {0}", file));
 //			}
+
+			switch (msmoney_file.FileType) {
+			case MSMONEY_FILE_TYPE.MSMONEY_BACKUP_FILE:
+			case MSMONEY_FILE_TYPE.MSMONEY_DATABASE_FILE:
+				throw new NotImplementedException (string.Format("Parsing for file type: '{0}' has not been implemented.", msmoney_file.FileType.ToString()));
+			case MSMONEY_FILE_TYPE.STANDARDJET_DATABASE_FILE:
+				parser = new jetdb_parser (msmoney_file);
+				break;
+			default:
+				throw new InvalidOperationException (string.Format("unknown file type: {0}", file));
+			}
+
 			return parser;
 		}
 	}

 

  ViewVC Help
Powered by ViewVC 1.1.22