Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
edge.hpp
1 //////////////////////////////
2 //
3 // File: swrs/edge.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 12 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __EDGE_H__
15 #define __EDGE_H__
16 #include <string>
17 #include "swrs/feature.hpp"
18 namespace SWRS
19 {
20 
21  //! interface of edge
22  class Edge: public Feature
23  {
24  public:
25  //! copy ctor
27  :Feature(impl)
28  {}
29  //! for UI
30  const std::string GetRequirementsAsString() const;
31  //! return edge object of given name. if name matches, return this; 0 otherwise
32  const Edge * GetEdge(const std::string & name) const
33  {
34  if (name==GetName())
35  return this;
36  else
37  return 0;
38  }
39 
40  };
41 }
42 #endif
43