summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp')
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp122
1 files changed, 61 insertions, 61 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp b/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp
index dff9365ceb7..6dd83b18989 100644
--- a/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.cpp
@@ -8,83 +8,83 @@
ACE_RCSID (Config_Handlers,
DnC_Dump_T,
"$Id$")
-namespace Deployment
-{
- namespace DnC_Dump_T
+ namespace Deployment
{
- // Dumps a reference
- template <typename ROOT, typename REFERENCE, typename DATA_TYPE,
- typename CLASS>
- void
- dump_ref (const char* caption, REFERENCE& ref,
- const char* root, DATA_TYPE CLASS::*data)
+ namespace DnC_Dump_T
{
- ACE_DEBUG ((LM_DEBUG, "%s%s:\n",
- Dump_Obj::indent(), caption));
+ // Dumps a reference
+ template <typename ROOT, typename REFERENCE, typename DATA_TYPE,
+ typename CLASS>
+ void
+ dump_ref (const char* caption, REFERENCE& ref,
+ const char* root, DATA_TYPE CLASS::*data)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s:\n",
+ Dump_Obj::indent(), caption));
- const CORBA::Any &val = Dump_Obj::desc (root);
+ const CORBA::Any &val = Dump_Obj::desc (root);
- ROOT *t = 0;
+ ROOT *t = 0;
- val >>= t;
+ val >>= t;
- const ROOT &root_obj = *t;
+ const ROOT &root_obj = *t;
- int value = ref;
- ACE_DEBUG ((LM_DEBUG, "%s%s.name: %s\n",
- Dump_Obj::indent(), caption,
- (root_obj.*data)[value].name.in()));
- }
+ int value = ref;
+ ACE_DEBUG ((LM_DEBUG, "%s%s.name: %s\n",
+ Dump_Obj::indent(), caption,
+ (root_obj.*data)[value].name.in()));
+ }
- // Dumps a reference sequence
- template <typename ROOT, typename SEQUENCE, typename DATA_TYPE,
- typename CLASS>
- void
- dump_ref_seq (const char* caption, SEQUENCE& seq,
- const char* root, DATA_TYPE CLASS::*data)
- {
- ACE_DEBUG ((LM_DEBUG,
- "%s%s:\n",
- Dump_Obj::indent(), caption));
+ // Dumps a reference sequence
+ template <typename ROOT, typename SEQUENCE, typename DATA_TYPE,
+ typename CLASS>
+ void
+ dump_ref_seq (const char* caption, SEQUENCE& seq,
+ const char* root, DATA_TYPE CLASS::*data)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "%s%s:\n",
+ Dump_Obj::indent(), caption));
- CORBA::Any val;
- val <<= root;
+ CORBA::Any val;
+ val <<= root;
- for (size_t i = 0; i < seq.length(); ++i)
- {
- const CORBA::Any &val = Dump_Obj::desc (root);
+ for (size_t i = 0; i < seq.length(); ++i)
+ {
+ const CORBA::Any &val = Dump_Obj::desc (root);
- ROOT *t = 0;
+ ROOT *t = 0;
- val >>= t;
+ val >>= t;
- const ROOT &root_obj = *t;
- int value = seq[i];
- ACE_DEBUG ((LM_DEBUG, "%s%s[%d].name: %s\n",
- Dump_Obj::indent(), caption, i,
- (root_obj.*data)[value].name.in()));
- }
- }
+ const ROOT &root_obj = *t;
+ int value = seq[i];
+ ACE_DEBUG ((LM_DEBUG, "%s%s[%d].name: %s\n",
+ Dump_Obj::indent(), caption, i,
+ (root_obj.*data)[value].name.in()));
+ }
+ }
- // Dumps a sequence
- template <typename SEQUENCE>
- void
- dump_sequence (const char* caption, const SEQUENCE &seq)
- {
- CORBA::ULong size = seq.length ();
+ // Dumps a sequence
+ template <typename SEQUENCE>
+ void
+ dump_sequence (const char* caption, const SEQUENCE &seq)
+ {
+ CORBA::ULong size = seq.length ();
- if (size != 0)
- {
- Dump_Obj dump_obj(caption);
+ if (size != 0)
+ {
+ Dump_Obj dump_obj(caption);
- for (CORBA::ULong i = 0; i < size; ++i)
- {
- ACE_DEBUG ((LM_DEBUG, "%s%s %d: \n", Dump_Obj::indent(),
- caption, i));
- DnC_Dump::dump (seq[i]);
- }
- }
+ for (CORBA::ULong i = 0; i < size; ++i)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s %d: \n", Dump_Obj::indent(),
+ caption, i));
+ DnC_Dump::dump (seq[i]);
+ }
+ }
+ }
}
}
-}
#endif /* DNC_DUMP_C */