/[escript]/trunk/escript/src/DataAbstract.h
ViewVC logotype

Diff of /trunk/escript/src/DataAbstract.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 22  Line 22 
22  #include "escript/Data/FunctionSpace.h"  #include "escript/Data/FunctionSpace.h"
23    
24  #include <iostream>  #include <iostream>
25    #include <fstream>
26  #include <boost/scoped_ptr.hpp>  #include <boost/scoped_ptr.hpp>
27  #include <functional>  #include <functional>
28  #include <string>  #include <string>
# Line 269  class DataAbstract { Line 270  class DataAbstract {
270    setTaggedValue(int tagKey,    setTaggedValue(int tagKey,
271                   const DataArrayView& value);                   const DataArrayView& value);
272    
273      /**
274        \brief
275        Archive the underlying data values to the file referenced
276        by ofstream. A count of the number of values expected to be written
277        is provided as a cross-check.
278    
279        The return value indicates success (0) or otherwise (1).
280      */
281      virtual
282      int
283      archiveData(std::ofstream& archiveFile,
284                  const ValueType::size_type noValues) const;
285    
286      /**
287        \brief
288        Extract the number of values specified by noValues from the file
289        referenced by ifstream to the underlying data structure.
290    
291        The return value indicates success (0) or otherwise (1).
292      */
293      virtual
294      int
295      extractData(std::ifstream& archiveFile,
296                  const ValueType::size_type noValues);
297    
298   protected:   protected:
299    
300    /**    /**
301       \brief       \brief
302       Set the pointDataView DataArrayView associated with this object.       Set the pointDataView DataArrayView associated with this object.
303    
304       \param right - Input - The point data view. DataAbstract takes ownership       \param input - Input - The point data view. DataAbstract takes ownership
305       of the DataArrayView provided. It will delete it when it is destructed.       of the DataArrayView provided. It will delete it when it is destructed.
306    */    */
307    void    void
308    setPointDataView(const DataArrayView& input);    setPointDataView(const DataArrayView& input);
309    
310      void
311      resetPointDataView();
312    
313   private:   private:
314    
315    //    //

Legend:
Removed from v.117  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26