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/multistorage.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/multistorage.hh')
-rw-r--r-- | src/multistorage.hh | 71 |
1 files changed, 40 insertions, 31 deletions
diff --git a/src/multistorage.hh b/src/multistorage.hh index 50ad470..4614864 100644 --- a/src/multistorage.hh +++ b/src/multistorage.hh @@ -1,55 +1,64 @@ // $Header$ -#ifndef MULTISTORAGE_HH -#define MULTISTORAGE_HH +#ifndef FORMALINE_MULTISTORAGE_HH +#define FORMALINE_MULTISTORAGE_HH #include <list> #include "storage.hh" -using namespace std; - -class multistorage +namespace Formaline { - list<storage *> stores; + + using namespace std; + + + + class multistorage + { + list<storage *> stores; - multistorage (multistorage const &); + multistorage (multistorage const &); - multistorage - operator= (multistorage const &); + multistorage + operator= (multistorage const &); -public: + public: - multistorage (); + multistorage (); - ~ multistorage (); + ~ multistorage (); - void - add_storage (storage *); + void + add_storage (storage *); - int - num_storages () - const; + int + num_storages () + const; - void - store (char const * key, bool value) - const; + void + store (char const * key, bool value) + const; - void - store (char const * key, int value) - const; + void + store (char const * key, int value) + const; - void - store (char const * key, double value) - const; + void + store (char const * key, double value) + const; - void - store (char const * key, char const * value) - const; -}; + void + store (char const * key, char const * value) + const; + }; + + + +} // namespace Formaline -#endif // ifndef MULTISTORAGE_HH +#endif // ifndef FORMALINE_MULTISTORAGE_HH |