Changeset 231 for XMLIO_V2/dev/common/src/xmlio/data_treatment.hpp
- Timestamp:
- 06/20/11 13:59:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/xmlio/data_treatment.hpp
r219 r231 93 93 (const StdString & fieldId, const ARRAY(float, N) & data) 94 94 { 95 std::vector<boost::multi_array<double, N>::size_type shape() > shape; 96 const size_type * shapearr = data->shape(); 95 typedef typename boost::multi_array<double, N>::size_type sizetp; 96 std::vector<sizetp> shape; 97 const sizetp * shapearr = data->shape(); 97 98 98 99 shape.assign(shapearr, shapearr + N); 99 ARRAY_CREATE(datad, double, N, shape);100 ARRAY_CREATE(datad, double, N, [shape]); 100 101 datad->assign(data->begin(), data->end()); 101 102 … … 123 124 { 124 125 boost::shared_ptr<comm::CClient> client = comm::CClient::GetClient(); 125 client .sendData(fieldId, file->getId(), field->getData());126 client->sendData(fieldId, file->getId(), field->getData()); 126 127 } 127 128 else
Note: See TracChangeset
for help on using the changeset viewer.