5 #include "tools/ToolsConfig.h"
8 #include "storage/NameHash.h"
9 #include "storage/RTree.h"
37 virtual void open(
const stdString &filename,
62 virtual void close() = 0;
86 PROHIBIT_DEFAULT_COPY(
Result);
101 virtual Result *
addChannel(
const stdString &channel) = 0;
112 virtual Result *
findChannel(
const stdString &channel) = 0;
122 virtual bool isValid()
const = 0;
125 virtual const stdString &
getName()
const = 0;
130 virtual void next() = 0;
143 PROHIBIT_DEFAULT_COPY(
Index);
146 void setFilename(
const stdString &full_name);
149 void clearFilename();
Name iterator.
Definition: Index.h:115
virtual void next()=0
Get next entry.
RTree * getRTree() const
Definition: Index.h:76
Return value of addChannel() and findChannel()
Definition: Index.h:65
ReadWrite
Modes used for open.
Definition: Index.h:27
virtual NameIterator * iterator()=0
Get NameIterator, located on first channel.
const stdString & getDirectory() const
Definition: Index.h:80
~Result()
Destructor, deletes the RTree pointer.
virtual bool isValid() const =0
virtual void close()=0
Close the index.
virtual ~Index()
Destructor.
Implements a file-based RTree.
Definition: RTree.h:54
const stdString & getFullName()
Definition: Index.h:58
const std::string & getFilename()
Get the basename.
Definition: Index.h:44
const std::string & getDirectory()
Get the directory.
Definition: Index.h:51
virtual Result * addChannel(const stdString &channel)=0
Add a channel to the index.
virtual void open(const stdString &filename, ReadWrite readwrite=ReadOnly)=0
Open an index.
Base interface for the archiver's indices.
Definition: Index.h:16
Result(RTree *tree, const stdString &directory)
Construct result.
virtual Result * findChannel(const stdString &channel)=0
Obtain the RTree for a channel.
virtual ~NameIterator()
Destructor.
virtual const stdString & getName() const =0