Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / tt / lib / util / tt_int_rec.h
1 /*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                   */
2 /*%%  (c) Copyright 1993, 1994 International Business Machines Corp.     */
3 /*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                    */
4 /*%%  (c) Copyright 1993, 1994 Novell, Inc.                              */
5 /*%%  $XConsortium: tt_int_rec.h /main/3 1995/10/23 10:40:28 rswiston $                                                          */
6 /*
7  *
8  * tt_int_rec.h
9  *
10  * Copyright (c) 1990 by Sun Microsystems, Inc.
11  */
12 #ifndef TT_INT_REC_H
13 #define TT_INT_REC_H
14 #include <util/tt_object.h>
15 #include <util/tt_list.h>
16 #if defined(ultrix)
17 #include <rpc/types.h>
18 #endif
19
20 /* 
21  * _Tt_int_rec is essentially just a wrapper around an integer so we can
22  * have lists of integers (which isn't allowed in the implementation of
23  * the list utility).
24  */
25 class _Tt_int_rec : public _Tt_object {
26       public:
27         _Tt_int_rec();
28         _Tt_int_rec(int val);
29         virtual ~_Tt_int_rec();
30         int                     val;
31         bool_t                  xdr(XDR *xdrs);
32         void                    print(const _Tt_ostream &os) const;
33 };
34 declare_list_of(_Tt_int_rec)
35
36
37 class _Tt_pid_t_rec : public _Tt_object {
38       public:
39         _Tt_pid_t_rec();
40         _Tt_pid_t_rec(pid_t val);
41         virtual ~_Tt_pid_t_rec();
42         pid_t                   val;
43         bool_t                  xdr(XDR *xdrs);
44         void                    print(const _Tt_ostream &os) const;
45 };
46 declare_list_of(_Tt_pid_t_rec)
47
48 #endif                          /*  TT_INT_REC_H */