diff options
author | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2005-05-31 12:21:07 +0000 |
---|---|---|
committer | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2005-05-31 12:21:07 +0000 |
commit | b291165dca900822bb22d9d08c3c2b51be925580 (patch) | |
tree | 86035fb56934ed5ee378b09fe95d97ad892c164a /src/file.hh | |
parent | f8fedd5ec017e3ad6d00e9845f0631e2cb64e2cf (diff) |
Put everything into a namespace.
Include <fstream> once more, maybe it helps.
Correct a few errors that gcc pointed out.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@26 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/file.hh')
-rw-r--r-- | src/file.hh | 65 |
1 files changed, 36 insertions, 29 deletions
diff --git a/src/file.hh b/src/file.hh index 9da207f..e9b8af3 100644 --- a/src/file.hh +++ b/src/file.hh @@ -1,7 +1,7 @@ // $Header$ -#ifndef FILE_HH -#define FILE_HH +#ifndef FORMALINE_FILE_HH +#define FORMALINE_FILE_HH @@ -12,44 +12,51 @@ -class file : public storage +namespace Formaline { - ofstream fil; + + class file : public storage + { + std::ofstream fil; -public: + public: - file (char const * id, - enum state st); + file (char const * id, + enum state st); - virtual - ~ file (); + virtual + ~ file (); - virtual void - store (char const * key, - bool value); + virtual void + store (char const * key, + bool value); - virtual void - store (char const * key, - int value); + virtual void + store (char const * key, + int value); - virtual void - store (char const * key, - double value); + virtual void + store (char const * key, + double value); - virtual void - store (char const * key, - char const * value); + virtual void + store (char const * key, + char const * value); -private: + private: - void - write (std::string const & msg); + void + write (std::string const & msg); - std::string - clean (std::string const & txt) - const; -}; + std::string + clean (std::string const & txt) + const; + }; + + + +} // namespace Formaline -#endif // ifndef FILE_HH +#endif // ifndef FORMALINE_FILE_HH |