Last change
on this file since 224 was 215, checked in by dai_9181, 17 years ago |
BoostSerializationSupportのクラステンプレートインスタンスを明示的に生成するようにした(コンパイル時間の短縮)
|
File size:
1.1 KB
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include <vector>
|
---|
4 | #include <string>
|
---|
5 | #include <fstream>
|
---|
6 | #include <sstream>
|
---|
7 |
|
---|
8 | #include <boost/serialization/serialization.hpp>
|
---|
9 | #include <boost/serialization/nvp.hpp>
|
---|
10 | #include <boost/serialization/export.hpp>
|
---|
11 |
|
---|
12 | namespace Jenga{
|
---|
13 | namespace Common{
|
---|
14 |
|
---|
15 | using namespace std;
|
---|
16 |
|
---|
17 | template<class T_xml_schema> class BoostSerializationSupport{
|
---|
18 | virtual const char *RootTagName() const = 0;
|
---|
19 |
|
---|
20 | void echo( const char *msg ) const;
|
---|
21 |
|
---|
22 | public:
|
---|
23 | bool ReadXml( istream& ifs, bool isShowExceptionMessage = true );
|
---|
24 | bool WriteXml( ostream& ofs, bool isShowExceptionMessage = true ) const;
|
---|
25 | bool ReadXml( const string &xmlFilePath, bool isShowExceptionMessage = true );
|
---|
26 | bool WriteXml( const string &xmlFilePath, bool isShowExceptionMessage = true ) const;
|
---|
27 |
|
---|
28 | bool ReadBinaly( const string &filePath, bool isShowExceptionMessage = true );
|
---|
29 | bool WriteBinaly( const string &filePath, bool isShowExceptionMessage = true ) const;
|
---|
30 |
|
---|
31 | bool ReadText( const string &filePath, bool isShowExceptionMessage = true );
|
---|
32 | bool WriteText( const string &filePath, bool isShowExceptionMessage = true ) const;
|
---|
33 |
|
---|
34 | bool ReadXmlFromString( const string &xmlBuffer );
|
---|
35 | };
|
---|
36 |
|
---|
37 |
|
---|
38 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.