2 * Sample code from The ACE Programmer's Guide,
3 * copyright 2003 Addison-Wesley. All Rights Reserved.
9 #include "ace/OS_NS_string.h"
10 #include "ace/Based_Pointer_T.h"
12 // Listing 11 code/ch17
19 Record (const Record
& rec
)
20 : id1_(rec
.id1_
), id2_(rec
.id2_
)
22 ACE_OS::strcpy (recName_
, rec
.name_
);
23 this->name_
= recName_
;
25 Record (int id1
, int id2
, char *name
)
26 : id1_(id1
), id2_(id2
)
28 ACE_OS::strcpy (recName_
, name
);
29 this->name_
= recName_
;
31 char *name () { return recName_
; }
32 int id1 () { return id1_
; }
33 int id2 () { return id2_
; }
39 ACE_Based_Pointer_Basic
<char> name_
;
43 #endif /* __RECORD_H_ */