DDS  ver. 3.6
TopoCreator.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__TopoCreator__
7 #define __DDS__TopoCreator__
8 
9 // STD
10 #include <memory>
11 // DDS
12 #include "TopoGroup.h"
13 
14 namespace dds
15 {
16  namespace topology_api
17  {
18  class CTopoCreatorCore;
19 
21  {
22  public:
24  CTopoCreator();
25 
30  CTopoCreator(const std::string& _filename, const std::string& _schemaFilename = "");
31 
36  CTopoCreator(std::istream& _stream, const std::string& _schemaFilename = "");
37 
39  virtual ~CTopoCreator();
40 
43  void save(const std::string& _filename);
44 
47  void save(std::ostream& _stream);
48 
51 
52  private:
53  std::shared_ptr<CTopoCreatorCore> m_topoCreator;
54  };
55  } // namespace topology_api
56 } // namespace dds
57 #endif /* defined(__DDS__TopoCreator__) */
CTopoGroup::Ptr_t getMainGroup() const
Returns shared pointer to the main group of the topology.
Definition: TopoCreator.cpp:43
CTopoCreator()
Constructor.
Definition: TopoCreator.cpp:14
std::shared_ptr< CTopoGroup > Ptr_t
Definition: TopoGroup.h:18
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
virtual ~CTopoCreator()
Destructor.
Definition: TopoCreator.cpp:29
Definition: TopoCreator.h:20
void save(const std::string &_filename)
Saves topology to the specified XML file.
Definition: TopoCreator.cpp:33