24 #ifndef COM_DAFER45_TBTK_FILE_PARSER
25 #define COM_DAFER45_TBTK_FILE_PARSER
54 std::string description
70 static void openOutput(std::string fileName);
73 static void closeOutput();
76 static void readInput(std::string fileName);
79 static void writeLineBreaks(
int numLineBreaks);
82 static void writeTabs(
int numTabs);
85 static void write(std::complex<double> value);
88 static void write(
const Index &index);
91 static void writeCoordinates(
93 const std::vector<double> &coordinates
99 static void writeSpecifiers(
const std::vector<int> &specifiers);
102 static void writeDescription(std::string description);
108 static void writeGeometry(
Model *model);
111 static void removeComments();
114 static void removeInitialWhiteSpaces();
117 static int readParameter(
118 std::string parameterName,
119 std::string parentStructure
123 static void readAmplitudes(
Model *model);
126 static void readGeometry(
Model *model);
132 static Index* readIndex();
135 static void readCoordinates(
136 std::vector<double> *coordinates,
141 static void readSpecifiers(
142 std::vector<int> *specifiers,
147 static bool readComplex(std::complex<double> *c);
150 static bool readDouble(
double *d,
char endChar =
' ');
153 static bool readInt(
int *i,
char endChar =
' ');
156 static std::ofstream fout;
159 static std::stringstream ssin;