Fresco/Babylon/demo dump_props.cc,1.1,1.2

Tobias Hunger <[email protected]> Fri, 24 Oct 2003 17:11:07 +0000
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Babylon/demo
In directory purcel:/tmp/cvs-serv17608/Babylon/demo

Modified Files:
	dump_props.cc 
Log Message:
Don't pollute the global namespace with lots of classes only needed here
and get closer to the coding standard. Sorry, this is just another of
those clean-up patches stefan keeps ridiculing me about ;-)


Index: dump_props.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Babylon/demo/dump_props.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dump_props.cc	1 Aug 2003 16:47:09 -0000	1.1
+++ dump_props.cc	24 Oct 2003 17:11:04 -0000	1.2
@@ -28,518 +28,523 @@
 
 using namespace Babylon;
 
-class Property
+namespace
 {
-  public:
-    virtual std::string property() = 0;
-    virtual bool get(Char) = 0;
-};
 
[...1009 lines suppressed...]
     catch(std::runtime_error &e)
     {
-	std::cout << "Caught an runtime exception: " << e.what()
-		  << std::endl;
+        std::cout << "Caught an runtime exception: " << e.what()
+                  << std::endl;
     }
     catch(std::exception &e)
     {
-	std::cout << "Caught an exception: " << e.what()
-		  << std::endl;
+        std::cout << "Caught an exception: " << e.what()
+                  << std::endl;
     }
     catch(...)
     {
-	std::cout << "Some exception happened!" << std::endl;
+        std::cout << "Some exception happened!" << std::endl;
     }
 }