Rev | Line | |
---|
[215] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | namespace Jenga{
|
---|
| 4 | namespace Common{
|
---|
| 5 |
|
---|
| 6 | template<class T_xml_schema> class BoostSerializationSupport{
|
---|
| 7 | virtual const char *RootTagName() const = 0;
|
---|
| 8 |
|
---|
| 9 | void echo( const char *msg ) const;
|
---|
| 10 |
|
---|
| 11 | public:
|
---|
[523] | 12 | bool ReadXml( std::istream& ifs, bool isShowExceptionMessage = true );
|
---|
| 13 | bool WriteXml( std::ostream& ofs, bool isShowExceptionMessage = true ) const;
|
---|
[264] | 14 | bool ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true );
|
---|
| 15 | bool WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ) const;
|
---|
[279] | 16 | bool ReadXmlString( const std::string &xmlString );
|
---|
| 17 | bool WriteXmlString( std::string &xmlString ) const;
|
---|
[215] | 18 |
|
---|
[322] | 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;
|
---|
[215] | 23 |
|
---|
[404] | 24 | /*
|
---|
| 25 | ビルドに時間がかかるので外しておく
|
---|
[264] | 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;
|
---|
[215] | 30 |
|
---|
[264] | 31 | bool ReadXmlFromString( const std::string &xmlBuffer );
|
---|
[404] | 32 | */
|
---|
[215] | 33 | };
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.