proj home

Files   Classes   Functions   Hierarchy  

visitdataC.cpp

Go to the documentation of this file.
00001 #include <typeinfo>
00002 #include <iostream>
00003 using namespace std;
00004 
00005 
00006 #include <visitbase.h>
00007 #include <visitprint.h>
00008 #include <visitdataC.h>
00009 
00010 
00011 bool const visitdataC::visit( visitbase & x)
00012 {
00013   if (typeid(x)==typeid(visitprint))
00014     return visit( (visitprint&)x );
00015   
00016   return false;
00017 }
00018 
00019 bool const visitdataC::visit( visitprint & p )
00020 {
00021   cout << "visitdataC(print)   - C::val1=" << val1 << " C::val2=" << val2 << endl;
00022 
00023   return true;
00024 }
00025 
00026 
00027 

Generated on Fri Mar 4 00:49:31 2011 for Chelton Evans Source by  doxygen 1.5.8