Commits

Palmer, 2E0EOL committed 22c33b4 Draft

Define 'marriages' module.

Comments (0)

Files changed (3)

src/dlbk5dump.cpp

 #include <cstring>
 //#include <map>
 
+#include "marriage.hpp"
+
 using namespace std;
 //---------------------------------------------------------------------------
 static bool CheckFiles(void);
 //---------------------------------------------------------------------------
 int main()
 {
-	if ( CheckFiles() ) {
-		puts("All files exist.");
-		return 0;
+	TReadMarriages marriages;
+
+	if ( !CheckFiles() ) {
+		puts("Error: Files don\'t exist");
+		return 1;
 	}
-	puts("Error: Files don\'t exist");
-	return 1;
+	marriages.Load();
+	puts("All files exist.");
+	return 0;
 }
 //---------------------------------------------------------------------------
+#include <cstdio>
+#include <map>
+
+#include "marriage.hpp"
+//---------------------------------------------------------------------------
+TReadMarriages *TReadMarriages::Load()
+{
+	return this;
+}
+//---------------------------------------------------------------------------
+#include <cstdio>
+#include <map>
+
+#ifndef INC_MARRIAGE_H
+#define INC_MARRIAGE_H
+//---------------------------------------------------------------------------
+struct Marriage {
+	unsigned long int HusbandId;
+	unsigned long int WifeI;
+};
+
+class TReadMarriages {
+private:
+	std::map<unsigned short int, struct Marriage *> detail;
+public:
+	TReadMarriages *Load(void);
+};
+//---------------------------------------------------------------------------
+#endif //!INC_MARRIAGE_H