graph_analysis
Attribute.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_ATTRIBUTE_HPP
2 #define GRAPH_ANALYSIS_ATTRIBUTE_HPP
3 
4 #include <string>
5 
6 namespace graph_analysis {
7 
8 class Attribute
9 {
10 public:
11  typedef std::string Id;
12  Attribute();
13 
14  Attribute(const Id& id,
15  const std::string name,
16  const std::string& type = "STRING");
17 
18  Id getId() const { return mId; }
19  std::string getName() const { return mName; }
20  std::string getType() const { return mType; }
21 
22  std::string toString() const;
23 
24 private:
25  Id mId;
26  std::string mName;
27  std::string mType;
28 };
29 
30 } // end namespace graph_analysis
31 #endif // GRAPH_ANALYSIS_ATTRIBUTE_HPP
Id getId() const
Definition: Attribute.hpp:18
Attribute()
Definition: Attribute.cpp:6
std::string getType() const
Definition: Attribute.hpp:20
Definition: Attribute.hpp:8
std::string Id
Definition: Attribute.hpp:11
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
std::string getName() const
Definition: Attribute.hpp:19
std::string toString() const
Definition: Attribute.cpp:17