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
|
#ifndef EET_LIST_H
#define EET_LIST_H
/* includes */
#include "Chunk.h"
#include "ChunkIterator.h"
namespace eet {
/* forward declarations */
class Document;
class List
{
public:
List (Document& doc, const std::string &filter = "*" );
~List ();
ChunkIterator begin ();
ChunkIterator end ();
const Chunk operator [] (const std::string &key_name) const;
Chunk operator [] (const std::string &key_name);
private:
Document &_doc;
char **_list;
int _nb_elems;
};
} // namespace eet
#endif // EET_LIST_H
|