~tux-style/eflxx/eetxx

« back to all changes in this revision

Viewing changes to include/eetxx/List.h

  • Committer: andreas
  • Date: 2009-11-29 21:29:43 UTC
  • Revision ID: svn-v4:7cbeb6ba-43b4-40fd-8cce-4c39aea84d33:trunk/BINDINGS/cxx/eetxx:44046
*** EFLXX API change!!!!!!!! ***
=> more usage of namespaces instead of direct class names
(some libs are in work and not yet possible to compile with the new API)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EET_LIST_H
 
2
#define EET_LIST_H
 
3
 
 
4
/* includes */
 
5
#include "Chunk.h"
 
6
#include "ChunkIterator.h"
 
7
 
 
8
namespace eet {
 
9
 
 
10
/* forward declarations */
 
11
class Document;
 
12
 
 
13
class List
 
14
{
 
15
public:
 
16
  List (Document& doc, const std::string &filter = "*" );
 
17
 
 
18
  ~List ();
 
19
 
 
20
  ChunkIterator begin ();
 
21
 
 
22
  ChunkIterator end ();
 
23
 
 
24
  const Chunk operator [] (const std::string &key_name) const;
 
25
 
 
26
  Chunk operator [] (const std::string &key_name);
 
27
 
 
28
private:
 
29
  Document &_doc;
 
30
  char     **_list;
 
31
  int        _nb_elems;
 
32
};
 
33
 
 
34
} // namespace eet
 
35
 
 
36
#endif // EET_LIST_H