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 membername,
16  const std::string classname,
17  const std::string& type = "STRING");
18 
19  Id getId() const { return mId; }
20  std::string getMemberName() const { return mMemberName; }
21  std::string getClassName() const { return mClassName; }
22  std::string getType() const { return mType; }
23 
24  std::string toString() const;
25 
26 private:
27  Id mId;
28  std::string mMemberName;
29  std::string mClassName;
30  std::string mType;
31 };
32 
33 } // end namespace graph_analysis
34 #endif // GRAPH_ANALYSIS_ATTRIBUTE_HPP
std::string getMemberName() const
Definition: Attribute.hpp:20
Id getId() const
Definition: Attribute.hpp:19
Attribute()
Definition: Attribute.cpp:6
std::string getType() const
Definition: Attribute.hpp:22
Definition: Attribute.hpp:8
std::string Id
Definition: Attribute.hpp:11
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
std::string getClassName() const
Definition: Attribute.hpp:21
std::string toString() const
Definition: Attribute.cpp:19