Changeset 215 in dev for trunk/abdev/BasicCompiler_Common/include/MetaImpl.h
- Timestamp:
- Jul 17, 2007, 3:44:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/MetaImpl.h
r212 r215 1 1 #pragma once 2 2 3 #include < jenga/include/common/BoostSerializationSupport.h>3 #include <BoostSerializationSupport.h> 4 4 5 5 #include <option.h> … … 153 153 return procPointers; 154 154 } 155 156 bool AutoWrite( const std::string &filePath )157 {158 std::ofstream ofs( filePath.c_str() );159 160 bool isSuccessful = false;161 try{162 boost::archive::xml_oarchive oa(ofs);163 164 // ファイルから読込165 oa << boost::serialization::make_nvp( RootTagName(), *this );166 167 isSuccessful = true;168 }169 catch(...){170 // 失敗171 }172 173 // 入力を閉じる174 ofs.close();175 176 return isSuccessful;177 }178 155 };
Note:
See TracChangeset
for help on using the changeset viewer.