Changeset 523 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/BoostSerializationSupport.cpp
- Timestamp:
- May 1, 2008, 11:03:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/BoostSerializationSupport.cpp
r522 r523 53 53 MessageBox( NULL, msg, "XMLシリアライズの例外", MB_OK ); 54 54 } 55 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( istream& ifs, bool isShowExceptionMessage )55 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( std::istream& ifs, bool isShowExceptionMessage ) 56 56 { 57 57 bool isSuccessful = false; … … 86 86 return true; 87 87 } 88 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( ostream& ofs, bool isShowExceptionMessage ) const88 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( std::ostream& ofs, bool isShowExceptionMessage ) const 89 89 { 90 90 bool isSuccessful = false; … … 119 119 return true; 120 120 } 121 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( const st ring &xmlFilePath, bool isShowExceptionMessage )121 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage ) 122 122 { 123 123 // 入力アーカイブの作成 … … 131 131 return result; 132 132 } 133 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( const st ring &xmlFilePath, bool isShowExceptionMessage ) const133 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage ) const 134 134 { 135 135 // 出力アーカイブの作成 … … 201 201 } 202 202 203 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadBinaryFile( const st ring &filePath, bool isShowExceptionMessage )204 { 205 // 入力アーカイブの作成 206 std::ifstream ifs( filePath.c_str(), ios::in |ios::binary );203 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadBinaryFile( const std::string &filePath, bool isShowExceptionMessage ) 204 { 205 // 入力アーカイブの作成 206 std::ifstream ifs( filePath.c_str(), std::ios::in | std::ios::binary ); 207 207 208 208 bool isSuccessful = false; … … 239 239 return true; 240 240 } 241 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteBinaryFile( const st ring &filePath, bool isShowExceptionMessage ) const241 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteBinaryFile( const std::string &filePath, bool isShowExceptionMessage ) const 242 242 { 243 243 // 出力アーカイブの作成 244 std::ofstream ofs( filePath.c_str(), ios::out |ios::binary );244 std::ofstream ofs( filePath.c_str(), std::ios::out | std::ios::binary ); 245 245 246 246 bool isSuccessful = false; … … 283 283 284 284 // 入力アーカイブの作成 285 std::istringstream iss( binaryString, ios::in |ios::binary );285 std::istringstream iss( binaryString, std::ios::in | std::ios::binary ); 286 286 287 287 try{ … … 306 306 { 307 307 // 出力アーカイブの作成 308 std::ostringstream oss( "", ios::out |ios::binary );308 std::ostringstream oss( "", std::ios::out | std::ios::binary ); 309 309 310 310 bool isSuccessful = false; … … 332 332 /* 333 333 ビルドに時間がかかるので外しておく 334 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadText( const st ring &filePath, bool isShowExceptionMessage )334 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadText( const std::string &filePath, bool isShowExceptionMessage ) 335 335 { 336 336 // 入力アーカイブの作成 … … 370 370 return true; 371 371 } 372 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteText( const st ring &filePath, bool isShowExceptionMessage ) const372 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteText( const std::string &filePath, bool isShowExceptionMessage ) const 373 373 { 374 374 // 出力アーカイブの作成
Note:
See TracChangeset
for help on using the changeset viewer.