EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
AutoIndex.h
1 // -*- c++ -*-
2 
3 #ifndef __AUTO_INDEX_H__
4 #define __AUTO_INDEX_H__
5 
6 // tools
7 #include "tools/AutoPtr.h"
8 #include "tools/NoCopy.h"
9 
10 // storage
11 #include "storage/Index.h"
12 
20 class AutoIndex : public Index
21 {
22 public:
23  AutoIndex() {}
24 
25  ~AutoIndex();
26 
27  virtual void open(const stdString &filename, ReadWrite readwrite=ReadOnly);
28 
29  virtual void close();
30 
31  virtual Result *addChannel(const stdString &channel);
32 
33  virtual Result *findChannel(const stdString &channel);
34 
35  virtual NameIterator *iterator();
36 
37 private:
38  PROHIBIT_DEFAULT_COPY(AutoIndex);
39  AutoPtr<Index> index;
40 };
41 
42 #endif
Name iterator.
Definition: Index.h:115
virtual void open(const stdString &filename, ReadWrite readwrite=ReadOnly)
Open an index.
General Index for reading.
Definition: AutoIndex.h:20
Return value of addChannel() and findChannel()
Definition: Index.h:65
ReadWrite
Modes used for open.
Definition: Index.h:27
virtual Result * addChannel(const stdString &channel)
Add a channel to the index.
virtual NameIterator * iterator()
Get NameIterator, located on first channel.
virtual Result * findChannel(const stdString &channel)
Obtain the RTree for a channel.
virtual void close()
Close the index.
Base interface for the archiver&#39;s indices.
Definition: Index.h:16