Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / InterfaceRepo / Persistence_Test / Ptest.h
blobfbc3a0ce3b3a0b08f310e5b403520fd9a3598de7
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Ptest.h
7 * This code tests the persistence of the IFR by inserting
8 * IR objects into the repository with one function, and querying the
9 * repository with another, with a repository shutdown in between.
11 * @author Jeff Parsons <parsons@cs.wustl.edu>
13 //=============================================================================
16 #if !defined (PTEST_H)
17 #define PTEST_H
19 #include "tao/IFR_Client/IFR_BasicC.h"
20 #include "tao/ORB.h"
22 /**
23 * @class Ptest
25 * @brief IFR Persistence test Implementation
27 * Class wrapper for code which either populates or queries the
28 * Interface Repository. Designed to be used with a Perl script
29 * which can start and stop both this process and the repository
30 * process in the necessary order.
32 class Ptest
34 public:
35 /// Constructor
36 Ptest ();
38 /// Destructor
39 ~Ptest ();
41 /// Initialize the ORB and get the IFR object reference.
42 int init (int argc,
43 ACE_TCHAR *argv[]);
45 /// Execute test code.
46 int run ();
48 /// Cleanup
49 int shutdown ();
51 private:
52 /// The two IFR tests.
53 void populate ();
54 int query ();
56 /// Process the command line arguments.
57 int parse_args (int argc,
58 ACE_TCHAR *argv[]);
60 /// Flag to output results of IFR queries.
61 CORBA::Boolean debug_;
63 /// Are we populating a new IFR or querying a persistent one?
64 CORBA::Boolean query_;
66 /// Storage of the ORB reference.
67 CORBA::ORB_var orb_;
69 /// Storage of the IFR reference.
70 CORBA::Repository_var repo_;
73 #endif /* PTEST_H */