#pragma once #include //DataTable.cpp class DataTable{ char *buffer; int size; void Realloc( int size ) { this->buffer = (char *)realloc( this->buffer, size + 100 ); this->size = size; } // XMLシリアライズ用 private: friend class boost::serialization::access; BOOST_SERIALIZATION_SPLIT_MEMBER(); template void load(Archive& ar, const unsigned int version) { std::string _buffer; ar & BOOST_SERIALIZATION_NVP( _buffer ); ar & BOOST_SERIALIZATION_NVP( size ); // 読み込み後の処理 Realloc( size ); for( int i=0; i void save(Archive& ar, const unsigned int version) const { // 保存準備 char *tempCode = (char *)calloc( (size+1) * 3, 1 ); for( int i=0; i