Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JRewindable.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JREWINDABLE__
2 #define __JLANG__JREWINDABLE__
3 
4 
5 /**
6  * \author mdejong
7  */
8 
9 namespace JLANG {}
10 namespace JPP { using namespace JLANG; }
11 
12 namespace JLANG {
13 
14  /**
15  * Template interface of rewindable object.
16  */
17  template<class T>
18  class JRewindable {
19  protected:
20  /**
21  * Default constructor.
22  */
24  {}
25 
26 
27  public:
28  /**
29  * Virtual destructor.
30  */
31  virtual ~JRewindable()
32  {}
33 
34 
35  /**
36  * Rewind.
37  */
38  virtual void rewind() = 0;
39  };
40 }
41 
42 #endif
Template interface of rewindable object.
Definition: JRewindable.hh:18
virtual void rewind()=0
Rewind.
JRewindable()
Default constructor.
Definition: JRewindable.hh:23
virtual ~JRewindable()
Virtual destructor.
Definition: JRewindable.hh:31