Index: trunk/jenga/include/common/BoostSerializationSupport.h
===================================================================
--- trunk/jenga/include/common/BoostSerializationSupport.h	(revision 213)
+++ trunk/jenga/include/common/BoostSerializationSupport.h	(revision 213)
@@ -0,0 +1,266 @@
+#pragma once
+
+#include <vector>
+#include <string>
+#include <fstream>
+#include <sstream>
+
+#include <boost/archive/xml_oarchive.hpp>
+#include <boost/archive/xml_iarchive.hpp>
+#include <boost/archive/binary_oarchive.hpp>
+#include <boost/archive/binary_iarchive.hpp>
+#include <boost/serialization/serialization.hpp>
+#include <boost/serialization/string.hpp>
+#include <boost/serialization/access.hpp>
+#include <boost/serialization/export.hpp>
+#include <boost/serialization/level.hpp>
+#include <boost/serialization/vector.hpp>
+#include <boost/serialization/map.hpp>
+#include <boost/serialization/nvp.hpp>
+#include <boost/serialization/version.hpp>
+#include <boost/serialization/is_abstract.hpp>
+
+#include <windows.h>
+
+namespace Jenga{
+namespace Common{
+
+using namespace std;
+
+template<class T_xml_schema> class BoostSerializationSupport{
+	virtual const char *RootTagName() const = 0;
+
+	void echo( const char *msg ) const
+	{
+		MessageBox( NULL, msg, "XMLシリアライズの例外", MB_OK );
+	}
+
+public:
+	bool ReadXml( istream& ifs, bool isShowExceptionMessage = true )
+	{
+		bool isSuccessful = false;
+
+		try{
+			boost::archive::xml_iarchive ia(ifs);
+
+			// ファイルから読込
+			ia >> boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
+
+			isSuccessful = true;
+		}
+		catch( boost::archive::archive_exception e )
+		{
+			if( isShowExceptionMessage )
+			{
+				echo( e.what() );
+			}
+		}
+		catch(...){
+			if( isShowExceptionMessage )
+			{
+				echo( "archive_exception以外の不明な例外" );
+			}
+		}
+
+		if( !isSuccessful )
+		{
+			return false;
+		}
+
+		return true;
+	}
+
+	bool WriteXml( ostream& ofs, bool isShowExceptionMessage = true ) const
+	{
+		bool isSuccessful = false;
+
+		try{
+			boost::archive::xml_oarchive oa(ofs);
+
+			// ファイルに書き出し
+			oa << boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
+
+			isSuccessful = true;
+		}
+		catch( boost::archive::archive_exception e )
+		{
+			if( isShowExceptionMessage )
+			{
+				echo( e.what() );
+			}
+		}
+		catch(...){
+			if( isShowExceptionMessage )
+			{
+				echo( "archive_exception以外の不明な例外" );
+			}
+		}
+
+		if( !isSuccessful )
+		{
+			return false;
+		}
+
+		return true;
+	}
+
+	bool ReadXml( const string &xmlFilePath, bool isShowExceptionMessage = true )
+	{
+		// 入力アーカイブの作成
+		std::ifstream ifs( xmlFilePath.c_str() );
+		
+		bool result = ReadXml(ifs,isShowExceptionMessage);
+
+		// 入力を閉じる
+		ifs.close();
+
+		return result;
+	}
+	bool WriteXml( const string &xmlFilePath, bool isShowExceptionMessage = true ) const
+	{
+		// 出力アーカイブの作成
+		std::ofstream ofs( xmlFilePath.c_str() );
+
+		bool result = WriteXml(ofs,isShowExceptionMessage);
+
+		// 出力を閉じる
+		ofs.close();
+
+		return result;
+	}
+
+	bool ReadBinaly( const string &xmlFilePath, bool isShowExceptionMessage = true )
+	{
+		// 入力アーカイブの作成
+		std::ifstream ifs( xmlFilePath.c_str() );
+
+		bool isSuccessful = false;
+		try{
+			boost::archive::binary_iarchive ia(ifs);
+
+			// ファイルから読込
+			ia >> boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
+
+			isSuccessful = true;
+		}
+		catch( boost::archive::archive_exception e )
+		{
+			if( isShowExceptionMessage )
+			{
+				echo( e.what() );
+			}
+		}
+		catch(...){
+			if( isShowExceptionMessage )
+			{
+				echo( "archive_exception以外の不明な例外" );
+			}
+		}
+
+		// 入力を閉じる
+		ifs.close();
+
+		if( !isSuccessful )
+		{
+			return false;
+		}
+
+		return true;
+	}
+	bool WriteBinaly( const string &xmlFilePath, bool isShowExceptionMessage = true ) const
+	{
+		// 出力アーカイブの作成
+		std::ofstream ofs( xmlFilePath.c_str() );
+
+		bool isSuccessful = false;
+		try{
+			boost::archive::binary_oarchive oa(ofs);
+
+			// ファイルに書き出し
+			oa << boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
+
+			isSuccessful = true;
+		}
+		catch( boost::archive::archive_exception e )
+		{
+			if( isShowExceptionMessage )
+			{
+				echo( e.what() );
+			}
+		}
+		catch(...){
+			if( isShowExceptionMessage )
+			{
+				echo( "archive_exception以外の不明な例外" );
+			}
+		}
+
+		// 出力を閉じる
+		ofs.close();
+
+		if( !isSuccessful )
+		{
+			return false;
+		}
+
+		return true;
+	}
+
+	bool ReadXmlFromString( const string &xmlBuffer )
+	{
+		bool isSuccessful = false;
+
+		// 入力アーカイブの作成
+		std::istringstream iss( xmlBuffer );
+
+		try{
+			boost::archive::xml_iarchive ia(iss);
+
+			// 文字列ストリームから読込
+			ia >> boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
+
+			isSuccessful = true;
+		}
+		catch(...){
+			// 失敗
+		}
+
+		if( !isSuccessful )
+		{
+			return false;
+		}
+
+		return true;
+	}
+	bool ToXmlWString( wstring &xmlBuffer ) const
+	{
+		bool isSuccessful = false;
+
+		// 入力アーカイブの作成
+		std::ostringstream oss;
+
+		try{
+			boost::archive::xml_oarchive oa(oss);
+
+			// 文字列ストリームへ書き出し
+			oa << boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
+
+			xmlBuffer = oss.str();
+
+			isSuccessful = true;
+		}
+		catch(...){
+			// 失敗
+		}
+
+		if( !isSuccessful )
+		{
+			return false;
+		}
+
+		return true;
+	}
+};
+
+
+}}
Index: trunk/jenga/include/common/BoostXmlSupport.h
===================================================================
--- trunk/jenga/include/common/BoostXmlSupport.h	(revision 212)
+++ 	(revision )
@@ -1,190 +1,0 @@
-#pragma once
-
-#include <vector>
-#include <string>
-#include <fstream>
-#include <sstream>
-
-#include <boost/archive/xml_oarchive.hpp>
-#include <boost/archive/xml_iarchive.hpp>
-#include <boost/serialization/serialization.hpp>
-#include <boost/serialization/string.hpp>
-#include <boost/serialization/access.hpp>
-#include <boost/serialization/export.hpp>
-#include <boost/serialization/level.hpp>
-#include <boost/serialization/vector.hpp>
-#include <boost/serialization/map.hpp>
-#include <boost/serialization/nvp.hpp>
-#include <boost/serialization/version.hpp>
-#include <boost/serialization/is_abstract.hpp>
-
-#include <windows.h>
-
-namespace Jenga{
-namespace Common{
-
-using namespace std;
-
-template<class T_xml_schema> class BoostXmlSupport{
-	virtual const char *RootTagName() const = 0;
-
-	void echo( const char *msg ) const
-	{
-		MessageBox( NULL, msg, "XMLシリアライズの例外", MB_OK );
-	}
-
-public:
-	bool Read( istream& ifs, bool isShowExceptionMessage = true )
-	{
-		bool isSuccessful = false;
-
-		try{
-			boost::archive::xml_iarchive ia(ifs);
-
-			// ファイルから読込
-			ia >> boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
-
-			isSuccessful = true;
-		}
-		catch( boost::archive::archive_exception e )
-		{
-			if( isShowExceptionMessage )
-			{
-				echo( e.what() );
-			}
-		}
-		catch(...){
-			if( isShowExceptionMessage )
-			{
-				echo( "archive_exception以外の不明な例外" );
-			}
-		}
-
-		if( !isSuccessful )
-		{
-			return false;
-		}
-
-		return true;
-	}
-
-	bool Write( ostream& ofs, bool isShowExceptionMessage = true ) const
-	{
-		bool isSuccessful = false;
-
-		try{
-			boost::archive::xml_oarchive oa(ofs);
-
-			// ファイルに書き出し
-			oa << boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
-
-			isSuccessful = true;
-		}
-		catch( boost::archive::archive_exception e )
-		{
-			if( isShowExceptionMessage )
-			{
-				echo( e.what() );
-			}
-		}
-		catch(...){
-			if( isShowExceptionMessage )
-			{
-				echo( "archive_exception以外の不明な例外" );
-			}
-		}
-
-		if( !isSuccessful )
-		{
-			return false;
-		}
-
-		return true;
-	}
-
-	bool Read( const string &xmlFilePath, bool isShowExceptionMessage = true )
-	{
-		bool isSuccessful = false;
-
-		// 入力アーカイブの作成
-		std::ifstream ifs( xmlFilePath.c_str() );
-		
-		bool result = Read(ifs,isShowExceptionMessage);
-
-		// 入力を閉じる
-		ifs.close();
-
-		return result;
-	}
-
-	bool Write( const string &xmlFilePath, bool isShowExceptionMessage = true ) const
-	{
-		// 出力アーカイブの作成
-		std::ofstream ofs( xmlFilePath.c_str() );
-
-		bool result = Write(ofs,isShowExceptionMessage);
-
-		// 出力を閉じる
-		ofs.close();
-
-		return result;
-	}
-
-	bool ReadFromString( const string &xmlBuffer )
-	{
-		bool isSuccessful = false;
-
-		// 入力アーカイブの作成
-		std::istringstream iss( xmlBuffer );
-
-		try{
-			boost::archive::xml_iarchive ia(iss);
-
-			// 文字列ストリームから読込
-			ia >> boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
-
-			isSuccessful = true;
-		}
-		catch(...){
-			// 失敗
-		}
-
-		if( !isSuccessful )
-		{
-			return false;
-		}
-
-		return true;
-	}
-	bool ToWString( wstring &xmlBuffer ) const
-	{
-		bool isSuccessful = false;
-
-		// 入力アーカイブの作成
-		std::ostringstream oss;
-
-		try{
-			boost::archive::xml_oarchive oa(oss);
-
-			// 文字列ストリームへ書き出し
-			oa << boost::serialization::make_nvp( RootTagName(), *(T_xml_schema *)this );
-
-			xmlBuffer = oss.str();
-
-			isSuccessful = true;
-		}
-		catch(...){
-			// 失敗
-		}
-
-		if( !isSuccessful )
-		{
-			return false;
-		}
-
-		return true;
-	}
-};
-
-
-}}
Index: trunk/jenga/include/common/Hashmap.h
===================================================================
--- trunk/jenga/include/common/Hashmap.h	(revision 212)
+++ trunk/jenga/include/common/Hashmap.h	(revision 213)
@@ -8,5 +8,5 @@
 #include <jenga/include/common/Exception.h>
 
-#include "BoostXmlSupport.h"
+#include "BoostSerializationSupport.h"
 
 
Index: trunk/jenga/include/common/logger.h
===================================================================
--- trunk/jenga/include/common/logger.h	(revision 212)
+++ trunk/jenga/include/common/logger.h	(revision 213)
@@ -13,5 +13,5 @@
 
 #include <jenga/include/common/Environment.h>
-#include <jenga/include/common/BoostXmlSupport.h>
+#include <jenga/include/common/BoostSerializationSupport.h>
 
 #define STDX_DSTREAM_BUFFERING
@@ -24,5 +24,5 @@
 
 
-class LoggerSetting : public BoostXmlSupport<LoggerSetting>
+class LoggerSetting : public BoostSerializationSupport<LoggerSetting>
 {
 public:
@@ -73,5 +73,5 @@
 			char temp3[MAX_PATH];
 			_splitpath(saveFilePath.c_str(),temporary,temp2,temp3,NULL);
-			setting.Read( (string)temporary + temp2 + temp3 + ".setting.xml", false );
+			setting.ReadXml( (string)temporary + temp2 + temp3 + ".setting.xml", false );
 		}
 	}
Index: trunk/jenga/include/smoothie/Namespace.h
===================================================================
--- trunk/jenga/include/smoothie/Namespace.h	(revision 212)
+++ trunk/jenga/include/smoothie/Namespace.h	(revision 213)
@@ -5,5 +5,5 @@
 #include <boost/foreach.hpp>
 
-#include <jenga/include/common/BoostXmlSupport.h>
+#include <jenga/include/common/BoostSerializationSupport.h>
 
 using namespace std;
Index: trunk/jenga/projects/common/common.vcproj
===================================================================
--- trunk/jenga/projects/common/common.vcproj	(revision 212)
+++ trunk/jenga/projects/common/common.vcproj	(revision 213)
@@ -296,5 +296,5 @@
 			>
 			<File
-				RelativePath="..\..\include\common\BoostXmlSupport.h"
+				RelativePath="..\..\include\common\BoostSerializationSupport.h"
 				>
 			</File>
