blob: 7d3b0b16eb4064b383936fb3878d69ba2eb32f68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/orbsvcs/tests/InterfaceRepo
//
// = FILENAME
// Ptest.h
//
// = DESCRIPTION
// This code tests the persistence of the IFR by inserting
// IR objects into the repository with one function, and querying the
// repository with another, with a repository shutdown in between.
//
// = AUTHOR
// Jeff Parsons <parsons@cs.wustl.edu>
//
// ============================================================================
#if !defined (PTEST_H)
#define PTEST_H
#include "tao/IFR_Client/IFR_BasicC.h"
class Ptest
{
// = TITLE
// IFR Persistence test Implementation
//
// = DESCRIPTION
// Class wrapper for code which either populates or queries the
// Interface Repository. Designed to be used with a Perl script
// which can start and stop both this process and the repository
// process in the necessary order.
public:
Ptest (void);
// Constructor
~Ptest (void);
// Destructor
int init (int argc,
char *argv[]);
// Initialize the ORB and get the IFR object reference.
int run (void);
// Execute test code.
private:
void populate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
void query (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
// The two IFR tests.
int parse_args (int argc,
char *argv[]);
// Process the command line arguments.
CORBA::Boolean debug_;
// Flag to output results of IFR queries.
CORBA::Boolean query_;
// Are we populating a new IFR or querying a persistent one?
CORBA::ORB_var orb_;
// Storage of the ORB reference.
CORBA::Repository_var repo_;
// Storage of the IFR reference.
};
#endif /* PTEST_H */
|