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

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

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

trunk/esys2/escript/src/Data/DataAbstract.cpp revision 119 by jgs, Tue Apr 12 04:45:05 2005 UTC trunk/escript/src/DataAbstract.cpp revision 474 by jgs, Mon Jan 30 04:23:44 2006 UTC
# Line 13  Line 13 
13   ******************************************************************************   ******************************************************************************
14  */  */
15    
16  #include "escript/Data/DataAbstract.h"  #include "DataAbstract.h"
17  #include "escript/Data/DataException.h"  #include "DataException.h"
18    
19  #include <iostream>  #include <iostream>
20    #include <fstream>
21    
22  using namespace std;  using namespace std;
23    
# Line 90  DataAbstract::setTaggedValue(int tagKey, Line 91  DataAbstract::setTaggedValue(int tagKey,
91      throw DataException("Error - DataAbstract::setTaggedValue: Data type does not have tag values.");      throw DataException("Error - DataAbstract::setTaggedValue: Data type does not have tag values.");
92  }  }
93    
94    int
95    DataAbstract::getTagNumber(int dpno)
96    {
97        throw DataException("Error - DataAbstract::getTagNumber: Data type cannot be accessed by tag values.");
98        return (0);
99    }
100    
101  void  void
102  DataAbstract::setRefValue(int ref,  DataAbstract::setRefValue(int ref,
103                            const DataArray& value)                            const DataArray& value)
# Line 104  DataAbstract::getRefValue(int ref, Line 112  DataAbstract::getRefValue(int ref,
112      throw DataException("Error - DataAbstract::getRefValue: Data type cannot be accessed by reference values.");      throw DataException("Error - DataAbstract::getRefValue: Data type cannot be accessed by reference values.");
113  }  }
114    
115    int
116    DataAbstract::archiveData(ofstream& archiveFile,
117                              const ValueType::size_type noValues) const
118    {
119      return 0;
120    }
121    
122    int
123    DataAbstract::extractData(ifstream& archiveFile,
124                              const ValueType::size_type noValues)
125    {
126      return 0;
127    }
128    
129    void
130    DataAbstract::copyAll(const boost::python::numeric::array& value)
131    {
132        throw DataException("Error - DataAbstract::copying data from numarray objects is not supported.");
133    }
134    
135    
136  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.119  
changed lines
  Added in v.474

  ViewVC Help
Powered by ViewVC 1.1.26