Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / tests / FT_Naming / FaultTolerant / Basic.h
blob2513de6544c2ec31566695f716809a8ab95428b7
1 // -*- C++ -*-
2 #ifndef BASIC_H
3 #define BASIC_H
5 #include "TestS.h"
6 #include "orbsvcs/FT_NamingManagerC.h"
7 #include "orbsvcs/PortableGroupC.h"
9 #if defined (_MSC_VER)
10 # pragma warning(push)
11 # pragma warning (disable:4250)
12 #endif /* _MSC_VER */
14 class LB_Basic_Test;
16 /// Implement the Test::Basic interface
17 class Basic
18 : public virtual POA_Test::Basic
20 public:
21 /// Constructor
22 Basic (CORBA::Object_ptr object_group,
23 FT_Naming::NamingManager_ptr lm,
24 CORBA::ORB_ptr orb,
25 const char *loc);
27 virtual char * get_string ();
29 virtual void shutdown ();
31 virtual void remove_member ();
33 private:
34 const char* object_group_name_;
36 /// Use an ORB reference to convert strings to objects and shutdown
37 /// the application.
38 CORBA::ORB_var orb_;
40 /// Naming Manager Reference used to delete the member from the
41 /// object group.
42 FT_Naming::NamingManager_var nm_;
44 /// location of the member
45 CORBA::String_var location_;
47 /// Object Group reference.
48 CORBA::Object_var object_group_;
51 #if defined(_MSC_VER)
52 # pragma warning(pop)
53 #endif /* _MSC_VER */
55 #endif /* BASIC_H */