TestArc.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2002 Sony Corporation 
00003 //
00004 // Permission to use, copy, modify, and redistribute this software for
00005 // non-commercial use is hereby granted.
00006 //
00007 // This software is provided "as is" without warranty of any kind,
00008 // either expressed or implied, including but not limited to the
00009 // implied warranties of fitness for a particular purpose.
00010 //
00011 
00012 #include <stdio.h>
00013 
00014 class TestArc {
00015 public:
00016     TestArc(const TestNode& s, const TestNode& d) : src(s), dest(d) {}
00017     ~TestArc() {}
00018 
00019     const TestNode& Source() const      { return src;  }
00020     const TestNode& Destination() const { return dest; }
00021     int Distance() const                { return 1;    }
00022 
00023     void Print() const { 
00024         printf("(");
00025         src.Print();
00026         printf("->");
00027         dest.Print();
00028         printf(")");
00029     }
00030 
00031 private:
00032     TestNode src;
00033     TestNode dest;
00034 };

Generated on Sun Dec 2 23:04:30 2007 for openSDK by  doxygen 1.3.9.1