49 if (!
fin->is_open()) {
79 ALIint wsiz = wordlist.size();
81 for (
ii = 0;
ii < wsiz;
ii++) {
86 const ALIint NMAXLIN = 1000;
90 for (
ii = 0;
ii < NMAXLIN;
ii++)
95 for (
ii = 0;
ii < NMAXLIN;
ii++) {
96 if (ltemp[
ii] ==
'\0')
99 if (
ii == NMAXLIN - 1) {
101 std::cerr <<
"!!!! line longer than " << NMAXLIN <<
" characters" << std::endl
102 <<
" please split it putting a '\\' at the end of line" << std::endl;
114 std::istringstream istr_line(ltemp);
121 if (*
tt !=
' ' && *(
tt) !=
'\0') {
125 }
else if (*(
tt - 1) ==
' ' || *(
tt - 1) ==
'\015' || *(
tt - 1) ==
'\t') {
131 }
while (*
tt !=
'\0' && stemp.length() != 0);
133 if (stempt.length() == 0)
138 for (
ii = 0;
ii < NoWords;
ii++) {
141 if (stemp.length() == 0)
147 }
else if (comment > 0) {
148 stemp = stemp.substr(0, comment);
149 wordlist.push_back(stemp);
153 wordlist.push_back(stemp);
163 if (!wordlist.empty()) {
164 if ((*(wordlist.end() - 1)) ==
"\\") {
178 if (wordlist[0] ==
"#include") {
179 if (wordlist.size() != 2) {
181 std::cerr <<
"'#include' should have as second argument the filename " << std::endl;
std::vector< ALIstring > theNames
static ALIFileIn & getInstance(const ALIstring &name)
static std::vector< ALIFileIn * > theInstances
static PFTauRenderPlugin instance
static ALIFileIn & getInstanceOpened(const ALIstring &name)
std::vector< ALIint > theLineNo
std::vector< std::ifstream * > theFiles
ALIint getWordsInLine(std::vector< ALIstring > &wl)
void openNewFile(const char *filename)