summaryrefslogtreecommitdiff
path: root/xsd/examples/cxx/parser/multiroot/protocol-pimpl.hxx
blob: c0693cbe2bd077ee2c231c69340f5ee5b5c1c857 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// file      : examples/cxx/parser/multiroot/protocol-pimpl.hxx
// copyright : not copyrighted - public domain

#ifndef PROTOCOL_PIMPL_HXX
#define PROTOCOL_PIMPL_HXX

#include "protocol.hxx"
#include "protocol-pskel.hxx"

namespace protocol
{
  class request_pimpl: public virtual request_pskel
  {
  public:
    virtual void
    account (unsigned int);

    virtual request*
    post_request ();

  protected:
    unsigned int account_;
  };

  class balance_pimpl: public virtual balance_pskel,
                       public request_pimpl
  {
  public:
    virtual balance*
    post_balance ();
  };

  class withdraw_pimpl: public virtual withdraw_pskel,
                        public request_pimpl
  {
  public:
    virtual void
    amount (unsigned int);

    virtual withdraw*
    post_withdraw ();

  private:
    unsigned int amount_;
  };
}

#endif // PROTOCOL_PIMPL_HXX