diff options
author | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2005-05-27 10:49:27 +0000 |
---|---|---|
committer | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2005-05-27 10:49:27 +0000 |
commit | f7e4d7ae9de31669bcb700e02bba9e71c4c959e5 (patch) | |
tree | 6f9c455fca76e17a7750cb13b4b46616e0288f50 /src/multistorage.cc | |
parent | 3c42753983e5094afabe023e956ca30417e5d7df (diff) |
Store the source tarballs into a subdirectory to remove clutter.
Restructure the announcing code so that there can be multiple announce
targets.
"Announce" to a file in the output directory by default.
Also announce the list of active thorns and all parameter values.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@14 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/multistorage.cc')
-rw-r--r-- | src/multistorage.cc | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/multistorage.cc b/src/multistorage.cc new file mode 100644 index 0000000..bf25e33 --- /dev/null +++ b/src/multistorage.cc @@ -0,0 +1,70 @@ +// $Header$ + +#include "multistorage.hh" + +using namespace std; + + + +multistorage:: +multistorage () +{ +} + + + +multistorage:: +~ multistorage () +{ + for (list<storage *>::const_iterator it = stores.begin(); + it != stores.end(); + ++ it) + { + delete * it; + } +} + + + +void multistorage:: +add_storage (storage * const s) +{ + stores.push_front (s); +} + + + +int multistorage:: +num_storages () + const +{ + return stores.size(); +} + + + +void multistorage:: +store (char const * const key, int const value) + const +{ + for (list<storage *>::const_iterator it = stores.begin(); + it != stores.end(); + ++ it) + { + (* it)->store (key, value); + } +} + + + +void multistorage:: +store (char const * const key, char const * const value) + const +{ + for (list<storage *>::const_iterator it = stores.begin(); + it != stores.end(); + ++ it) + { + (* it)->store (key, value); + } +} |