DDS  ver. 2.0
TopoVars.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__TopoVars__
7 #define __DDS__TopoVars__
8 
9 // DDS
10 #include "TopoBase.h"
11 // STD
12 #include <map>
13 #include <string>
14 
15 namespace dds
16 {
17  namespace topology_api
18  {
19  class CTopoVars : public CTopoBase
20  {
21  public:
22  typedef std::map<std::string, std::string> varMap_t;
23 
25  CTopoVars();
26 
28  virtual ~CTopoVars();
29 
31  void initFromPropertyTree(const std::string& _name, const boost::property_tree::ptree& _pt);
32 
35  virtual std::string toString() const;
36 
40  friend std::ostream& operator<<(std::ostream& _strm, const CTopoVars& _vars);
41 
42  const varMap_t& getMap() const;
43 
44  private:
45  varMap_t m_map;
46  };
47 
48  typedef std::shared_ptr<CTopoVars> TopoVarsPtr_t;
49  }
50 }
51 
52 #endif /* defined(__DDS__TopoVars__) */
std::map< std::string, std::string > varMap_t
Definition: TopoVars.h:22
const varMap_t & getMap() const
Definition: TopoVars.cpp:29
Definition: TopoBase.h:35
virtual ~CTopoVars()
Destructor.
Definition: TopoVars.cpp:25
virtual std::string toString() const
Returns string representation of an object.
Definition: TopoVars.cpp:55
void initFromPropertyTree(const std::string &_name, const boost::property_tree::ptree &_pt)
Inherited from TopoBase.
Definition: TopoVars.cpp:34
friend std::ostream & operator<<(std::ostream &_strm, const CTopoVars &_vars)
Operator << for convenient output to ostream.
Definition: dds-agent/src/AgentConnectionManager.h:18
Definition: TopoVars.h:19
CTopoVars()
Constructor.
Definition: TopoVars.cpp:18
std::shared_ptr< CTopoVars > TopoVarsPtr_t
Definition: TopoVars.h:48