Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / InterfaceRepo / Application_Test / test_i.cpp
blobc093f9714ca9fe19e831d2725b6dcfe1876dadf1
1 // -*- C++ -*-
2 #include "test_i.h"
4 #include "ace/SString.h"
6 CORBA::Boolean
7 inventory_i::getCDinfo (const char * artist,
8 char *& title,
9 CORBA::Float_out price)
11 CORBA::Boolean in_stock = 0;
12 price = 0.0f;
13 ACE_CString name_key ("Beatles");
14 ACE_CString name (artist);
15 CORBA::String_var tmp = title;
16 ACE_UNUSED_ARG (tmp);
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)
25 title =
26 CORBA::string_dup ("Sgt. Pepper's Lonely Hearts Club Band");
28 price = 13.49f;
30 in_stock = 1;
32 else
34 title = CORBA::string_dup ("not found");
37 else
39 title = CORBA::string_dup ("not found");
42 return in_stock;