4 #include "ace/SString.h"
7 inventory_i::getCDinfo (const char * artist
,
9 CORBA::Float_out price
)
11 CORBA::Boolean in_stock
= 0;
13 ACE_CString
name_key ("Beatles");
14 ACE_CString
name (artist
);
15 CORBA::String_var tmp
= title
;
18 if (name
.strstr (name_key
) != ACE_CString::npos
)
20 ACE_CString
title_key ("Sgt. Pepper");
21 ACE_CString
working_title (title
);
23 if (working_title
.strstr (title_key
) != ACE_CString::npos
)
26 CORBA::string_dup ("Sgt. Pepper's Lonely Hearts Club Band");
34 title
= CORBA::string_dup ("not found");
39 title
= CORBA::string_dup ("not found");