OSDN Git Service

#xxxxx DTXViewerのプロジェクトを追加。
[dtxmania/dtxmania.git] / DTXViewerプロジェクト / @FDK10プロジェクト / SerializeFileIO.h
diff --git a/DTXViewerプロジェクト/@FDK10プロジェクト/SerializeFileIO.h b/DTXViewerプロジェクト/@FDK10プロジェクト/SerializeFileIO.h
new file mode 100644 (file)
index 0000000..dc8e298
--- /dev/null
@@ -0,0 +1,35 @@
+// SerializeFileIO
+// \83t\83@\83C\83\8b\82Ö\82Ì\83o\83C\83g\83X\83g\83\8a\81[\83\80\93ü\8fo\97Í\81B
+
+#pragma once
+
+#include "CFile.h"
+#include "CFileMM.h"
+
+namespace FDK {
+       namespace General {
+
+class SerializeFileIO
+{
+public:
+       static void PutString( FILE *fp, LPCTSTR str );
+       static void PutBYTE( FILE *fp, BYTE b );
+       static void PutWORD( FILE *fp, WORD w );
+       static void PutDWORD( FILE *fp, DWORD dw );
+
+       static bool GetString( CFile *file, DWORD *p\93Ç\8fo\8aJ\8en\88Ê\92u, LPTSTR str\95\8e\9a\97ñ\8ai\94[\83o\83b\83t\83@, DWORD n\95\8e\9a\97ñ\8ai\94[\83o\83b\83t\83@\82Ì\8dÅ\91å\92· );
+       static bool GetString( CFileMM *file, DWORD *s, LPTSTR str, DWORD str_maxlen );
+       static bool GetBYTE( CFile *file, DWORD *p, BYTE *var );
+       static bool GetBYTE( CFileMM *file, DWORD *p, BYTE *var );
+       static bool GetWORD( CFile *file, DWORD *p, DWORD *var );
+       static bool GetWORD( CFileMM *file, DWORD *p, DWORD *var );
+       static bool GetDWORD( CFile *file, DWORD *p, DWORD *var );
+       static bool GetDWORD( CFileMM *file, DWORD *p, DWORD *var );
+
+       static void TEST();
+};
+
+       }//General
+}//FDK
+
+using namespace FDK::General;