aboutsummaryrefslogtreecommitdiff
path: root/src/multistorage.hh
blob: 46148649505758bcc58c15233ae815be9fe68a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// $Header$

#ifndef FORMALINE_MULTISTORAGE_HH
#define FORMALINE_MULTISTORAGE_HH

#include <list>

#include "storage.hh"



namespace Formaline
{

  using namespace std;



  class multistorage
  {
    list<storage *> stores;
  
    multistorage (multistorage const &);
  
    multistorage
    operator= (multistorage const &);
  
  public:
  
    multistorage ();
  
    ~ multistorage ();
  
    void
    add_storage (storage *);
  
    int
    num_storages ()
      const;
  
    void
    store (char const * key, bool value)
      const;
  
    void
    store (char const * key, int value)
      const;
  
    void
    store (char const * key, double value)
      const;
  
    void
    store (char const * key, char const * value)
      const;
  };



} // namespace Formaline



#endif // ifndef FORMALINE_MULTISTORAGE_HH