source: dev/trunk/ab5.0/jenga/include/common/BoostSerializationSupport.h@ 582

Last change on this file since 582 was 523, checked in by dai_9181, 17 years ago

ヘッダファイルを整理中

File size: 1.3 KB
Line 
1#pragma once
2
3namespace Jenga{
4namespace Common{
5
6template<class T_xml_schema> class BoostSerializationSupport{
7 virtual const char *RootTagName() const = 0;
8
9 void echo( const char *msg ) const;
10
11public:
12 bool ReadXml( std::istream& ifs, bool isShowExceptionMessage = true );
13 bool WriteXml( std::ostream& ofs, bool isShowExceptionMessage = true ) const;
14 bool ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true );
15 bool WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ) const;
16 bool ReadXmlString( const std::string &xmlString );
17 bool WriteXmlString( std::string &xmlString ) const;
18
19 bool ReadBinaryFile( const std::string &filePath, bool isShowExceptionMessage = true );
20 bool WriteBinaryFile( const std::string &filePath, bool isShowExceptionMessage = true ) const;
21 bool ReadBinaryString( const std::string &binaryString );
22 bool WriteBinaryString( std::string &binaryString ) const;
23
24/*
25ビルドに時間がかかるので外しておく
26 bool ReadText( const std::string &filePath, bool isShowExceptionMessage = true );
27 bool WriteText( const std::string &filePath, bool isShowExceptionMessage = true ) const;
28 bool ReadTextString( const std::string &textString );
29 bool WriteTextString( std::string &textString ) const;
30
31 bool ReadXmlFromString( const std::string &xmlBuffer );
32*/
33};
34
35
36}}
Note: See TracBrowser for help on using the repository browser.