blob: 1baba52073d1b550a218a91ff50072a320fd3a6d (
plain)
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
|
// file : examples/cxx/serializer/polyroot/library-simpl-mixin.hxx
// copyright : not copyrighted - public domain
#ifndef SUPERMEN_SIMPL_HXX
#define SUPERMEN_SIMPL_HXX
#include "supermen.hxx"
#include "supermen-sskel.hxx"
struct person_simpl: virtual person_sskel
{
virtual void
pre (const person&);
virtual std::string
name ();
protected:
const person* person_;
};
struct superman_simpl: virtual superman_sskel, person_simpl
{
virtual bool
can_fly ();
};
struct batman_simpl: virtual batman_sskel, superman_simpl
{
virtual unsigned int
wing_span ();
};
#endif // SUPERMEN_SIMPL_HXX
|