summaryrefslogtreecommitdiff
path: root/examples/APG/Naming/Graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/APG/Naming/Graph.cpp')
-rw-r--r--examples/APG/Naming/Graph.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/examples/APG/Naming/Graph.cpp b/examples/APG/Naming/Graph.cpp
deleted file mode 100644
index 79d0def14f3..00000000000
--- a/examples/APG/Naming/Graph.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-
-#include "ace/Log_Msg.h"
-#include "Graph.h"
-
-void Graph::graph (char *filename, Graphable_Element_List &data)
-{
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
- ACE_UNUSED_ARG (filename);
- ACE_UNUSED_ARG (data);
-#else
- data.sort ();
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Save graph to %C\n"), filename));
-
- char h[10][10];
- for (int n = 0 ; n < 10 ; ++n )
- {
- for (int j = 0; j < 10; ++j )
- {
- h[n][j] = ' ';
- }
- }
-
- int l[10];
- int k = 0;
- for (Graphable_Element_List::iterator i = data.begin ();
- i != data.end ();
- ++i, ++k )
- {
- l[k] = (*i).when ();
-
- int temp = (int)((*i).temp () - 80.0);
-
- for (int j = 0; j <= temp; ++j)
- {
- h[k][j] = '#';
- }
- }
-
- for (int m = 0 ; m < 10 ; ++m)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("%d "), l[m]));
-
- for (int j = 0; j < 10; ++j)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("%c"), h[m][j]));
- }
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("\n")));
- }
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-}