1 #include "UNV2417_Structure.hxx"
2 #include "UNV_Utilities.hxx"
6 using namespace UNV2417;
9 static int MYDEBUG = 1;
11 static int MYDEBUG = 0;
14 static string _label_dataset = "2417";
16 void UNV2417::Read(std::ifstream& in_stream, TDataSet& theDataSet)
19 EXCEPTION(runtime_error,"ERROR: Input file not good.");
22 * adjust the \p istream to our
25 if(!beginning_of_dataset(in_stream,_label_dataset))
26 EXCEPTION(runtime_error,"WARNING: Could not find "<<_label_dataset<<" dataset!");
29 for(; !in_stream.eof();){
32 // end of dataset is reached
39 in_stream>>aTmp; // miss not necessary values
49 for(int j=0; j < n_nodes; j++){
54 aNum = aRec.NodeList.size();
55 aRec.NodeList.resize(aNum + 1);
56 aRec.NodeList[aNum] = aElId;
59 aNum = aRec.ElementList.size();
60 aRec.ElementList.resize(aNum + 1);
61 aRec.ElementList[aNum] = aElId;
65 theDataSet.insert(TDataSet::value_type(aId,aRec));