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:
parent
c4751f20a3
commit
c0b8ec6ecd
@ -150,6 +150,9 @@ void ASCIIFile::CloseASCII(void)
|
||||
{
|
||||
file_stream.close();
|
||||
}
|
||||
name = "";
|
||||
mode = FileMode::Null;
|
||||
is_parsed = false;
|
||||
}
|
||||
|
||||
void ASCIIFile::Parse()
|
||||
|
@ -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:
|
||||
|
@ -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));}
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user