|
- #ifndef PRINT_DEF
- #define PRINT_DEF
- #include <string.h> //for strings
- #include <stdio.h> //for printf,scanf
- #include <stdlib.h> //for atoi, atof
- #include <string>
- #include <cstring>
- #include <iostream>
- #include <stdexcept>
- #endif
-
- #ifndef PARSE_DEF
- #define PARSE_DEF
- #define MAXBUFLEN 200
-
- void getFromString (const char* buf, int* n);
- void getFromString (const char* buf, size_t* n);
- void getFromString (const char* buf, double* n);
- void getFromString (const char* buf, char* n);
-
- int parseString(FILE* input, const char* keyword, const size_t bufLen, char* n);
-
- template<typename T>
- int parseNumber(FILE* input, const char* keyword, const size_t bufLen, T* n);
-
- template<typename T>
- int parseArray(FILE* input, const char* keyword, const size_t bufLen,
- const size_t arrLen, T y[]);
-
- int parseDrop(FILE* input, const char* keyword,char dropSpec[][10],double dropMole[],const size_t bufLen);
-
- #include "parse.hpp"
-
- #endif
-
|