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

Contents of /trunk/libmsmoneyfile/IMSMoneyFile.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations) (download)
Fri Sep 18 13:17:49 2015 UTC (4 years ago) by william
File size: 1288 byte(s)


1 using System;
2
3 namespace libmsmoneyfile
4 {
5 public enum MSMONEY_FILE_TYPE
6 {
7 INVALID_FILE,
8 MSMONEY_DATABASE_FILE,
9 MSMONEY_BACKUP_FILE,
10 }
11
12 public interface IMSMoneyFile
13 {
14 string File{get;}
15 MSMONEY_FILE_TYPE FileType{get;}
16 long HeaderSize{get;}
17 long HeaderOffset{get;}
18 long DatabaseOffset{get;}
19 }
20
21 internal sealed class _MSMoneyFile : IMSMoneyFile
22 {
23 public _MSMoneyFile() : this("") { }
24 public _MSMoneyFile(string file) : this(MSMONEY_FILE_TYPE.INVALID_FILE, file) { }
25 public _MSMoneyFile(MSMONEY_FILE_TYPE type, string file)
26 {
27 FileType = type;
28 File = file;
29 HeaderOffset = 0;
30 DatabaseOffset = 0;
31 HeaderSize = 0;
32 }
33 private MSMONEY_FILE_TYPE m_FileType;
34 public MSMONEY_FILE_TYPE FileType {get { return m_FileType; } internal set{m_FileType = value;} }
35
36 private string m_File;
37 public string File{get { return m_File;}internal set{m_File = value;}}
38
39 private long m_HeaderSize;
40 public long HeaderSize{get { return m_HeaderSize;} internal set{m_HeaderSize = value;}}
41
42 private long m_HeaderOffset;
43 public long HeaderOffset{get { return m_HeaderOffset;} internal set{m_HeaderOffset = value;}}
44
45 private long m_DatabaseOffset;
46 public long DatabaseOffset{get { return m_DatabaseOffset;} internal set{m_DatabaseOffset = value;}}
47 }
48 }
49

  ViewVC Help
Powered by ViewVC 1.1.22