TuttleOFX  1
TuttleOFX/libraries/tuttle/tests/internalGraph/dummy/DummyEdge.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_TEST_DUMMYEDGE_HPP_
00002 #define _TUTTLE_TEST_DUMMYEDGE_HPP_
00003 
00004 #include <string>
00005 
00006 namespace tuttle {
00007 namespace test {
00008 
00009 class DummyEdge
00010 {
00011 public:
00012         DummyEdge() {}
00013 
00014         DummyEdge( const std::string& name )
00015                 : _name( name ) {}
00016 
00017         DummyEdge( const DummyEdge& e )
00018                 : _name( e.getName() ) {}
00019 
00020         virtual ~DummyEdge()
00021         {}
00022 
00023         // operators
00024         DummyEdge& operator=( const DummyEdge& e )
00025         {
00026                 if( this == &e )
00027                         return *this;
00028                 _name = e.getName();
00029                 return *this;
00030         }
00031 
00032         const std::string& getName() const                { return _name; }
00033         const std::string& getInAttrName() const          { return _inAttrName; }
00034         void               setName( const std::string s ) { _name = s; }
00035 
00036         friend std::ostream& operator<<( std::ostream& os, const DummyEdge& v );
00037 
00038 private:
00039         std::string _name;
00040         std::string _inAttrName;
00041 };
00042 
00043 }
00044 }
00045 
00046 #endif
00047