18 #ifndef __Current_Input__
19 #define __Current_Input__
21 #include "math_util.h"
24 #include "BaseInput.h"
45 vector<segment> segments;
54 string searchString(
"CURRENTS AND LOCATION");
55 while (m_stream.good())
57 string line = readline();
59 if (line.find(searchString,0) != string::npos)
62 while (line.find(
"PHASE",0) == string::npos)
69 stringstream ss(line);
72 segments.push_back(s);
77 cout <<
"Currents and Location: " << n_items <<
" lines" << endl;
84 if (difference(ai) > 1e-5)
94 if (n_items != ai.n_items)
97 for (
long i=0; i < n_items;i++)
101 ret += segments[i].diff(ai.segments[i]);
103 catch (
string message)
105 cout <<
"Diff at segment [" << i <<
"] : " << message << endl;
Definition: CurrentInput.h:26