| Line |   | 
|---|
| 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:
 | 
|---|
| 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.