blob: 71cf4443aec6caf33f3b5c7c67003df763117708 (
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
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/performance-tests/Demux/CodeGen
//
// = FILENAME
// debug.cpp
//
// For debugging purposes
//
// = AUTHOR
//
// Aniruddha Gokhale
//
// ============================================================================
#include "codegen.h"
ACE_RCSID(CodeGen, debug, "$Id$")
int
Demux_Test_CodeGenerator::print_names (void)
{
ACE_DEBUG ((LM_DEBUG,
"*********** Begin Generated POA Names *********\n"));
this->print_array (this->poa_array_);
ACE_DEBUG ((LM_DEBUG,
"*********** End Generated POA Names *********\n\n"));
ACE_DEBUG ((LM_DEBUG,
"*********** Begin Generated Object Names *********\n"));
this->print_array (this->obj_array_);
ACE_DEBUG ((LM_DEBUG,
"*********** End Generated Object Names *********\n\n"));
ACE_DEBUG ((LM_DEBUG,
"*********** Begin Generated Operation Names *********\n"));
this->print_array (this->op_array_);
ACE_DEBUG ((LM_DEBUG,
"*********** End Generated Operation Names *********\n\n"));
return 0;
}
int
Demux_Test_CodeGenerator::print_array (ACE_Unbounded_Queue<ACE_CString> &arr)
{
ACE_CString *str;
ACE_Unbounded_Queue_Iterator <ACE_CString> iter (arr);
// start with the first element
if (!iter.first ())
{
// queue is empty
return 0;
}
while (!iter.done ())
{
// grab the next element waiting to be grabbed
(void) iter.next (str);
ACE_DEBUG ((LM_DEBUG,
"\t%s\n",
str->c_str ()));
(void) iter.advance ();
}
return 0; // not present
}
|