summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/Config_Handlers/DnC_Dump.h
blob: b20b98469e9ef45cc94e4b94e51d01439df63847 (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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
//==================================================================
/**
 *  @file  DnC_Dump.h
 *
 *  $Id$
 *
 *  @author Gan Deng <gan.deng@vanderbilt.edu>
 */
//=====================================================================

#ifndef DNC_DUMP_H
#define DNC_DUMP_H
#include /**/ "ace/pre.h"

#include "ciao/DeploymentC.h"
#include "Config_Handler_export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */


namespace Deployment
{
  /**
   * @class DnC_Dump
   *
   * @brief This class defines a set of overloaded "dump" methods to print
   * the contents of various IDL data types, which passed as input.
   */
  class Config_Handler_Export DnC_Dump
    {
/*
 *  If the compiler has broken nested templates exclude dumping functionality.
 */
#ifndef ACE_HAS_BROKEN_NESTED_TEMPLATES

    public:
      /// Dump functions for CORBA sequences
      static void dump (const char* caption,
                        const ::CORBA::StringSeq &str_seq);

      template <typename SEQUENCE>
        static void dump_sequence (const char* caption, const SEQUENCE &seq);

      template <typename ROOT, typename SEQUENCE,
                typename DATA_TYPE, typename CLASS>
        static void dump_ref_seq (const char* caption, SEQUENCE& seq,
                                  const char* root, DATA_TYPE CLASS::*data);

      template <typename ROOT, typename REFERENCE, typename DATA_TYPE,
                typename CLASS>
        static void dump_ref (const char* caption, REFERENCE& ref,
                              const char* root, DATA_TYPE CLASS::*data);

      static void dump (const char* caption, const TAO_String_Manager& str);

      static void dump (const char* caption, const CORBA::Boolean& val);

      /// A whole slew of overloaded dump routines for different IDL data types.

      static void dump(const Deployment::SatisfierProperty &sp);

      static void dump (const Deployment::SharedResource& sr);

      static void dump (const Deployment::Node& node);

      static void dump (const Deployment::Resource& resource);

      static void dump (const Deployment::Interconnect& conn);

      static void dump (const Deployment::Bridge& bridge);

      static void dump (const ::Deployment::Property &property);

      static void dump (const ::Deployment::AssemblyConnectionDescription &acd);

      static void dump (const ::Deployment::AssemblyPropertyMapping &apm);

      static void dump (const ::Deployment::ComponentPackageDescription
                             &comppkgdesc);

      static void dump (const ::Deployment::ComponentPortDescription
                             &compportdesc);

      static void dump (const ::Deployment::ComponentPropertyDescription
                             &comppropdesc);

      static void dump (const ::Deployment::MonolithicImplementationDescription
                             &mid);

      static void dump (const ::Deployment::PackageConfiguration &pc);

      static void dump (const ::Deployment::PackagedComponentImplementation
                             &pci);

      static void dump (const ::Deployment::SubcomponentPortEndpoint &spe);

      static void dump (const ::Deployment::Requirement &requirement);

      static void dump (const ::Deployment::ComponentExternalPortEndpoint
                             &cepe);

      static void dump (const ::Deployment::ComponentPackageReference &cpr);

      static void dump (const ::Deployment::ComponentImplementationDescription
                             &cid);

      static void dump (const ::Deployment::SubcomponentInstantiationDescription
                             &sid);

      static void dump (const ::Deployment::NamedImplementationArtifact
                             &named_implementation);

      static void dump (const ::Deployment::ComponentInterfaceDescription &cid);

      static void dump (const ::Deployment::SubcomponentPropertyReference
                             &scpr);

      static void dump (const ::Deployment::ExternalReferenceEndpoint &ere);

      static void dump (const ::Deployment::Domain &domain);

      static void dump (const ::Deployment::Capability &capability);

      static void dump (const ::Deployment::ImplementationArtifactDescription
                             &iad);

      static void dump (const ::Deployment::ImplementationRequirement &ir);

      static void dump(const Deployment::ResourceUsageKind &ruk);

      static void dump(const Deployment::DeploymentPlan &plan);

      static void dump(const Deployment::MonolithicDeploymentDescription &mdd);

      static void dump(const Deployment::InstanceDeploymentDescription &idd);

      static void dump(const Deployment::PlanConnectionDescription &pcd);

      static void dump(const Deployment::PlanPropertyMapping &ppm);

      static void dump(const Deployment::ImplementationDependency &id);

      static void dump(const Deployment::ArtifactDeploymentDescription &add);

      static void dump(const Deployment::InstanceResourceDeploymentDescription
                             &irdd);

      static void dump(const PlanSubcomponentPortEndpoint &pspe);

      static void dump(const ConnectionResourceDeploymentDescription &crdd);

      static void dump(const PlanSubcomponentPropertyReference &pspr);

      static void dump(const ResourceDeploymentDescription &rdd);

      static void dump (const ::Deployment::ComponentAssemblyDescription& cad);

      static void dump (const Deployment::RequirementSatisfier& rs);

    private:
      static void dump (const ::CORBA::Any &any);
      // Helper function to print an Any

#else // ACE_HAS_BROKEN_NESTED_TEMPLATES
    public:
      static void dump(const Deployment::DeploymentPlan &plan) { }

#endif // ACE_HAS_BROKEN_NESTED_TEMPLATES
    };
}

#include /**/ "ace/post.h"

#endif /* DNC_DUMP_H */