1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

minor fixes in ASCII I/O

This commit is contained in:
Antonin Portelli 2013-09-13 17:22:26 +01:00
parent c4751f20a3
commit c0b8ec6ecd
3 changed files with 9 additions and 2 deletions

View File

@ -150,6 +150,9 @@ void ASCIIFile::CloseASCII(void)
{
file_stream.close();
}
name = "";
mode = FileMode::Null;
is_parsed = false;
}
void ASCIIFile::Parse()

View File

@ -45,7 +45,8 @@ public:
virtual bool IsOpen(void) const = 0;
// IO
virtual void Close(void) = 0;
virtual void Open(const std::string new_name, const FileMode::Type new_mode) = 0;
virtual void Open(const std::string new_name,\
const FileMode::Type new_mode) = 0;
virtual void Save(void) = 0;
virtual void SaveAs(const std::string new_name) = 0;
protected:
@ -110,7 +111,8 @@ public:
virtual bool IsOpen(void) const;
// IO
virtual void Close(void);
virtual void Open(const std::string new_name, const FileMode::Type new_mode);
virtual void Open(const std::string new_name,\
const FileMode::Type new_mode);
virtual void Save(void);
virtual void SaveAs(const std::string new_name);
private:

View File

@ -79,5 +79,7 @@ mat:
floats:
FLOAT floats {state->double_buf.push($1);}
| INT floats {state->double_buf.push(static_cast<double>($1));}
| FLOAT {state->double_buf.push($1);}
| INT {state->double_buf.push(static_cast<double>($1));}
;