DDS  ver. 2.0
TopoIndex.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__TopoIndex__
7 #define __DDS__TopoIndex__
8 
9 #include <string>
10 #include <vector>
11 
12 namespace dds
13 {
14  namespace topology_api
15  {
16  class CTopoIndex
17  {
18  public:
20  CTopoIndex();
21 
24  CTopoIndex(const std::string& _path);
25 
27  ~CTopoIndex();
28 
30  std::string getPath() const;
31 
34  virtual std::string toString() const;
35 
39  friend std::ostream& operator<<(std::ostream& _strm, const CTopoIndex& _index);
40 
41  private:
42  std::string m_path;
43  };
44 
45  class CompareTopoIndexLess : public std::binary_function<const CTopoIndex&, const CTopoIndex&, bool>
46  {
47  public:
48  bool operator()(const CTopoIndex& index1, const CTopoIndex& index2) const;
49  };
50 
51  typedef std::vector<CTopoIndex> TopoIndexVector_t;
52  }
53 }
54 
55 #endif /* defined(__DDS__TopoIndex__) */
Definition: TopoIndex.h:16
virtual std::string toString() const
Returns string representation of an object.
Definition: TopoIndex.cpp:34
CTopoIndex()
Constructor.
Definition: TopoIndex.cpp:15
std::vector< CTopoIndex > TopoIndexVector_t
Definition: TopoIndex.h:51
Definition: dds-agent/src/AgentConnectionManager.h:18
std::string getPath() const
Accessors.
Definition: TopoIndex.cpp:29
~CTopoIndex()
\ breif Destructor
Definition: TopoIndex.cpp:25
friend std::ostream & operator<<(std::ostream &_strm, const CTopoIndex &_index)
Operator << for convenient output to ostream.
Definition: TopoIndex.h:45