DDS  ver. 2.0
TopologyParserXML.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__TopologyParserXML__
7 #define __DDS__TopologyParserXML__
8 
9 // DDS
10 #include "TaskGroup.h"
11 #include "TopoVars.h"
12 // STD
13 #include <map>
14 #include <string>
15 // BOOST
16 #include <boost/property_tree/ptree.hpp>
17 
18 namespace dds
19 {
20  namespace topology_api
21  {
23  {
24  public:
27 
29  virtual ~CTopologyParserXML();
30 
35  void parse(const std::string& _fileName, TaskGroupPtr_t _main, bool _xmlValidationDisabled = false);
36 
39  bool isValid(const std::string& _fileName, bool _xmlValidationDisabled = false);
40 
41  private:
43  void PrintPropertyTree(const std::string& _path, const boost::property_tree::ptree& _pt) const;
44  };
45  }
46 }
47 #endif /* defined(__DDS__TopologyParserXML__) */
CTopologyParserXML()
Constructor.
Definition: TopologyParserXML.cpp:46
Definition: dds-agent/src/AgentConnectionManager.h:18
Definition: TopologyParserXML.h:22
bool isValid(const std::string &_fileName, bool _xmlValidationDisabled=false)
Validate provided XML file against XSD using xmllint.
Definition: TopologyParserXML.cpp:54
virtual ~CTopologyParserXML()
Destructor.
Definition: TopologyParserXML.cpp:50
void parse(const std::string &_fileName, TaskGroupPtr_t _main, bool _xmlValidationDisabled=false)
Read topology from specified XML file.
Definition: TopologyParserXML.cpp:94
std::shared_ptr< CTaskGroup > TaskGroupPtr_t
Definition: TaskGroup.h:55