cpp-bencoding
BItemVisitor.h
Go to the documentation of this file.
1 
8 #ifndef BENCODING_BITEMVISITOR_H
9 #define BENCODING_BITEMVISITOR_H
10 
11 namespace bencoding {
12 
13 class BDictionary;
14 class BInteger;
15 class BList;
16 class BString;
17 
25 class BItemVisitor {
26 public:
27  virtual ~BItemVisitor();
28 
29  virtual void visit(BDictionary *bDictionary) = 0;
30  virtual void visit(BInteger *bInteger) = 0;
31  virtual void visit(BList *blist) = 0;
32  virtual void visit(BString *bString) = 0;
33 
34 protected:
35  BItemVisitor();
36 };
37 
38 } // namespace bencoding
39 
40 #endif
Representation of an integer.
Definition: BInteger.h:23
Base class for all visitors of the BItem subclasses.
Definition: BItemVisitor.h:25
Representation of a dictionary.
Definition: BDictionary.h:39
virtual ~BItemVisitor()
Destructs the visitor.
Main namespace of the bencoding library.
Representation of a string.
Definition: BString.h:23
BItemVisitor()
Constructs the visitor.
virtual void visit(BDictionary *bDictionary)=0
Representation of a list.
Definition: BList.h:26