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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
// -*- C++ -*-
//=============================================================================
/**
* @file idl3_client.h
*
* $Id$
*
* This class tests the IFR support for CCM-related types.
*
*
* @author Jeff Parsons <j.parsons@vanderbilt.edu>
*/
//=============================================================================
#ifndef IDL3_CLIENT_H
#define IDL3_CLIENT_H
#include "tao/IFR_Client/IFR_ComponentsC.h"
/**
* @class IDL3_Client
*
* @brief Component-aware IFR Client Implementation
*
* Class wrapper for a client which tests the Interface Repository
* support for the OMG IDL3 extensions.
*/
class IDL3_Client
{
public:
/// Constructor
IDL3_Client (void);
/// Destructor
~IDL3_Client (void);
/// Initialize the ORB and get the IFR object reference.
int init (int argc,
ACE_TCHAR *argv[]);
/// Execute test code.
int run (void);
private:
/// Process the command line arguments.
int parse_args (int argc,
ACE_TCHAR *argv[]);
int component_test (void);
int home_test (void);
// Also tests eventtype.
int valuetype_test (const char *repo_id,
const char *prefix);
int component_attribute_test (
CORBA::InterfaceAttrExtension::ExtFullInterfaceDescription_var &
);
int component_inheritance_test (CORBA::ComponentIR::ComponentDef_var &);
int component_port_test (CORBA::ComponentIR::ComponentDef_var &);
int provides_test (CORBA::ComponentIR::ProvidesDescriptionSeq &);
int uses_test (CORBA::ComponentIR::UsesDescriptionSeq &);
int event_port_test (CORBA::ComponentIR::EventPortDescriptionSeq &,
CORBA::ULong seq_length,
const char *port_type,
const char **names,
const char **ids);
int valuetype_inheritance_test (CORBA::ExtValueDef_var &,
const char *prefix);
int valuetype_attribute_test (
CORBA::ExtValueDef::ExtFullValueDescription_var &,
const char *prefix
);
int valuetype_operation_test (
CORBA::ExtValueDef::ExtFullValueDescription_var &,
const char *prefix
);
int valuetype_member_test (
CORBA::ExtValueDef::ExtFullValueDescription_var &,
const char *prefix
);
int valuetype_factory_test (
CORBA::ExtValueDef::ExtFullValueDescription_var &,
const char *prefix
);
int home_inheritance_test (CORBA::ComponentIR::HomeDef_var &);
int home_factory_test (CORBA::ComponentIR::HomeDescription *);
int home_finder_test (CORBA::ComponentIR::HomeDescription *);
private:
/// Flag to output detailed error messages.
bool debug_;
/// Storage of the ORB reference.
CORBA::ORB_var orb_;
/// Storage of the IFR reference.
CORBA::Repository_var repo_;
};
#endif /* IDL3_CLIENT_H */
|