libcsdbg  1.28
C++ exception (and generic) stack trace debug library
object.hpp
Go to the documentation of this file.
1 #ifndef _CSDBG_OBJECT
2 #define _CSDBG_OBJECT 1
3 
10 #include "./config.hpp"
11 
12 namespace csdbg {
13 
17 class object
18 {
19 public:
20 
21  /* Constructors, copy constructors and destructor */
22 
23  virtual ~object() = 0;
25  virtual object* clone() const = 0;
28  /* Generic methods */
29 
30  virtual const i8* class_name() const;
31 };
32 
33 }
34 
35 #endif
36 
This abstract class serves as the root of the class hierarchy tree.
Definition: object.hpp:17
char i8
8-bit signed integer
Definition: config.hpp:72
Library configuration, type, macro and global variable definition.
virtual object * clone() const =0
To be implemented.
virtual ~object()=0
To be implemented.
Definition: object.cpp:21
virtual const i8 * class_name() const
Query the class name of an object descending from csdbg::object.
Definition: object.cpp:33