File: objarg_Employee_Impl.hh

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (199 lines) | stat: -rw-r--r-- 4,374 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
// 
// File:          objarg_Employee_Impl.hh
// Symbol:        objarg.Employee-v0.5
// Symbol Type:   class
// Babel Version: 0.10.2
// Description:   Server-side implementation for objarg.Employee
// 
// WARNING: Automatically generated; only changes within splicers preserved
// 
// babel-version = 0.10.2
// 

#ifndef included_objarg_Employee_Impl_hh
#define included_objarg_Employee_Impl_hh

#ifndef included_sidl_cxx_hh
#include "sidl_cxx.hh"
#endif
#ifndef included_objarg_Employee_IOR_h
#include "objarg_Employee_IOR.h"
#endif
// 
// Includes for all method dependencies.
// 
#ifndef included_objarg_Employee_hh
#include "objarg_Employee.hh"
#endif
#ifndef included_sidl_BaseInterface_hh
#include "sidl_BaseInterface.hh"
#endif
#ifndef included_sidl_ClassInfo_hh
#include "sidl_ClassInfo.hh"
#endif


#line 36 "../../../../babel/regression/objarg/libCxx/objarg_Employee_Impl.hh"
// DO-NOT-DELETE splicer.begin(objarg.Employee._includes)
// Put additional includes or other arbitrary code here...
// DO-NOT-DELETE splicer.end(objarg.Employee._includes)
#line 40 "objarg_Employee_Impl.hh"

namespace objarg { 

  /**
   * Symbol "objarg.Employee" (version 0.5)
   * 
   * This object type holds the basic information about an employee:
   * name, age, salary and marital status.  This object exists purely
   * to serve as a test case for sidl.  It is not intended for serious
   * use.
   */
  class Employee_impl
#line 51 "../../../../babel/regression/objarg/libCxx/objarg_Employee_Impl.hh"
  // DO-NOT-DELETE splicer.begin(objarg.Employee._inherits)
  // Put additional inheritance here...
  // DO-NOT-DELETE splicer.end(objarg.Employee._inherits)
#line 57 "objarg_Employee_Impl.hh"
  {

  private:
    // Pointer back to IOR.
    // Use this to dispatch back through IOR vtable.
    Employee self;

#line 61 "../../../../babel/regression/objarg/libCxx/objarg_Employee_Impl.hh"
    // DO-NOT-DELETE splicer.begin(objarg.Employee._implementation)
    int32_t d_age;
    std::string d_name;
    float d_salary;
    char d_status;
    // DO-NOT-DELETE splicer.end(objarg.Employee._implementation)
#line 72 "objarg_Employee_Impl.hh"

  private:
    // private default constructor (required)
    Employee_impl() 
    {} 

  public:
    // sidl constructor (required)
    // Note: alternate Skel constructor doesn't call addref()
    // (fixes bug #275)
    Employee_impl( struct objarg_Employee__object * s ) : self(s,
      true) { _ctor(); }

    // user defined construction
    void _ctor();

    // virtual destructor (required)
    virtual ~Employee_impl() { _dtor(); }

    // user defined destruction
    void _dtor();

    // static class initializer
    static void _load();

  public:


    /**
     * Provide the data for the employee object to hold.
     * <code>false</code> is returned when the data was unacceptable.
     * <code>true</code> means the employee object was successfully
     * initialized.
     */
    bool
    init (
      /* in */ const ::std::string& name,
      /* in */ int32_t age,
      /* in */ float salary,
      /* in */ char status
    )
    throw () 
    ;


    /**
     * Change the name of an employee.
     */
    void
    setName (
      /* in */ const ::std::string& name
    )
    throw () 
    ;


    /**
     * Return the name of an employee.
     */
    ::std::string
    getName() throw () 
    ;

    /**
     * Change the age of an employee.
     */
    void
    setAge (
      /* in */ int32_t age
    )
    throw () 
    ;


    /**
     * Return the age of an employee.
     */
    int32_t
    getAge() throw () 
    ;

    /**
     * Set an employee's salary.
     */
    void
    setSalary (
      /* in */ float salary
    )
    throw () 
    ;


    /**
     * Return an employee's salary.
     */
    float
    getSalary() throw () 
    ;

    /**
     * Set an employee's marital status.
     */
    void
    setStatus (
      /* in */ char status
    )
    throw () 
    ;


    /**
     * Return an employee's marital status.
     */
    char
    getStatus() throw () 
    ;
  };  // end class Employee_impl

} // end namespace objarg

#line 187 "../../../../babel/regression/objarg/libCxx/objarg_Employee_Impl.hh"
// DO-NOT-DELETE splicer.begin(objarg.Employee._misc)
// Put miscellaneous things here...
// DO-NOT-DELETE splicer.end(objarg.Employee._misc)
#line 197 "objarg_Employee_Impl.hh"

#endif